barcode-epc
v1.0.14
Published
A Barcode EPC Utility Tool
Downloads
12
Readme
barcode-epc
A genetic Barcode EPC Converter and Utility Tool
Usage
npm install --save barcode-epc
var epcLib = require('barcode-epc');
const epcTagUri = epcLib.ssccBarcodeToEpcTagUri('364156095133066826', 6, 6);
const epcHex = epcLib.epcTagUriToHex('urn:epc:tag:sscc-96:6.641560.39513306682');
const ssccBarcode = epcLib.ssccTagUriToBarcode('urn:epc:tag:sscc-96:6.641560.39513306682');
const sgtinHex = epcLib.sgtin96TagUriToHex('urn:epc:tag:sgtin-96:3.0614141.812345.6789');
const barcodeInfo = epcLib.parseEan13Barcode('0112345678905', 7);
API
ssccBarcodeToEpcTagUri(String ssccBarcode, String companyPrefixLength, String filterValue)
Convert SSCC barcode to EPC Tag URI, Return EPC Tag URI
epcTagUriToHex(string epcTagURI)
Convert EPC Tag URI to EPC in Hexdecimal, Return Hexdecimal EPC
ssccTagUriToBarcode(string tagUri)
Convert SSCC EPC Tag URI to barcode, Return SSCC Barcode
sgtin96TagUriToHex(string tagUri)
Convert SGTIN96 Tag URI to Hexdecimal, Return Hexdecimal EPC
parseEan13Barcode(string barcode, string companyLength)
Parse EAN 13 barcode, example of return { companyPrefix: "0112345", itemRef: "067890" }
Supported standard
- SSCC
- SGTIN 96