Generate a UPC-A Barcode in Node.JS

Barcodes are integral throughout business operations for tracking, shipping, and selling. Furthermore, including your barcode in your packaging design can add a professional look to your products. The following API will allow you to generate a UPC-A Barcode image using Node.JS.

Image for post
Image for post

Run this command to install the SDK:

npm install cloudmersive-barcodeapi-client --save

Or add this snippet to your package.json:

"dependencies": {
"cloudmersive-barcodeapi-client": "^1.1.2"
}

Then, call the function:

var CloudmersiveBarcodeapiClient = require('cloudmersive-barcodeapi-client');
var defaultClient = CloudmersiveBarcodeapiClient.ApiClient.instance;

This will return a downloadable PNG image containing your barcode. You can retrieve the API Key from the Cloudmersive website at no cost and with no commitment. This will provide you with 800 monthly calls across our library of APIs.

Written by

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store