-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Node Setup
Sebastian Thomas edited this page Jul 26, 2019
·
2 revisions
JsBarcode for Node.js is dependent on node-canvas to work. It does have some dependencies outside of npm to work. Make sure to install them by following the instructions in their readme.
npm install canvas
npm install jsbarcode
const JsBarcode = require('jsbarcode');
const { Canvas } = require("canvas");
const canvas = new Canvas();
JsBarcode(canvas, "Hello");
// Do what you want with the canvas
// See https://github.com/Automattic/node-canvas for more information
- Home
- Options
- Setup
- Browser Setup
- Node Setup
- Barcodes
- CODE128
- EAN / UPC
- CODE39
- ITF-14
- MSI
- Pharmacode
- Codabar