@cityssm/jsbarcode-svg
v0.1.1
Published
A wrapper around JSBarcode to quickly create SVG barcodes in Node.
Readme
JSBarCode SVG for Node
A wrapper around JSBarcode to quickly create SVG barcodes in Node.
Installation
npm install @cityssm/jsbarcode-svgUsage
See the JSBarcode Wiki for the available options.
import generateBarcodeSvg from '@cityssm/jsbarcode-svg'
const svg = generateBarcodeSvg('WO.25.12345', {
displayValue: true,
format: 'CODE39',
height: 100,
width: 2
})
console.log(svg)
// => "<svg xmlns="http://www.w3.org/2000/svg" version="1.1"> ... </svg>Once generated, you can save it to a file, or output it directly to a webpage using your prefered templating language.
<div class="barcodeContainer">
<%- svg %>
</div>Related Projects
PDF Puppeteer Converts URLs and HTML to PDFs using Puppeteer.
Sunrise Cemetery Management System (CMS) A completely free, open source, web-based application to assist cemetery managers with managing their cemetery records.
