Skip to content

cityssm/node-jsbarcode-svg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

JSBarCode SVG for Node

DeepSource codecov Code Smells

A wrapper around JSBarcode to quickly create SVG barcodes in Node.

Installation

npm install @cityssm/jsbarcode-svg

Usage

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.

About

A wrapper around JSBarcode to quickly create SVG barcodes in Node

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors