https://github.com/cityssm/node-jsbarcode-svg
A wrapper around JSBarcode to quickly create SVG barcodes in Node
https://github.com/cityssm/node-jsbarcode-svg
barcode-generator jsbarcode svg
Last synced: 4 months ago
JSON representation
A wrapper around JSBarcode to quickly create SVG barcodes in Node
- Host: GitHub
- URL: https://github.com/cityssm/node-jsbarcode-svg
- Owner: cityssm
- License: mit
- Created: 2025-09-05T19:51:08.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-09-08T14:47:51.000Z (9 months ago)
- Last Synced: 2025-09-08T16:26:09.767Z (9 months ago)
- Topics: barcode-generator, jsbarcode, svg
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@cityssm/jsbarcode-svg
- Size: 69.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# JSBarCode SVG for Node
[](https://app.deepsource.com/gh/cityssm/node-jsbarcode-svg/)
[](https://codecov.io/gh/cityssm/node-jsbarcode-svg)
[](https://sonarcloud.io/summary/new_code?id=cityssm_node-jsbarcode-svg)
**A wrapper around JSBarcode to quickly create SVG barcodes in Node.**
## Installation
```bash
npm install @cityssm/jsbarcode-svg
```
## Usage
See the [JSBarcode Wiki](https://github.com/lindell/JsBarcode/wiki/Options) for the available options.
```javascript
import generateBarcodeSvg from '@cityssm/jsbarcode-svg'
const svg = generateBarcodeSvg('WO.25.12345', {
displayValue: true,
format: 'CODE39',
height: 100,
width: 2
})
console.log(svg)
// => " ...
```
Once generated, you can save it to a file, or output it directly to a webpage
using your prefered templating language.
```ejs
```
## Related Projects
[**PDF Puppeteer**](https://www.npmjs.com/package/@cityssm/pdf-puppeteer)
Converts URLs and HTML to PDFs using Puppeteer.
[**Sunrise Cemetery Management System (CMS)**](https://github.com/cityssm/sunrise-cms)
A completely free, open source, web-based application to assist cemetery managers with managing their cemetery records.