1.0.1 • Published 7 years ago

barcode-bars-to-binary v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

barcode-bars-to-binary

Build Status

Install

$ npm install --save barcode-bars-to-binary

Usage

const barsToBinary = require('barcode-bars-to-binary');

barsToBinary('10132111231222132113211321111111321122212122123122211312111')
//=> '10100011010110001001100100011010001101000110101010111001011001101101100100111011001101000100101'

API

barcode-bars-to-binary(bars)

Returns barcode in binary

bars

Type: string

A string of the barcode where each bar and gap is represented by one number between 1 and 4 depending on its width.

License

MIT

1.0.1

7 years ago

1.0.0

7 years ago