New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bwip

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bwip

BWIP for node

0.0.0
Source
npm
Version published
Weekly downloads
15
87.5%
Maintainers
1
Weekly downloads
 
Created
Source

bwip Build Status

BWIP for node

Getting Started

Install the module with: npm install bwip

var bwip = require('bwip');

var bcid = 'code128';
var scale = 4;
var rotate = 'L';
var text = '^FNC1011234567890';
var options = {
	alttext: '(01)01234567890',
	parsefnc: true
};

var png = bwip.png(bcid, text, scale, rotate, options);

Documentation

function : bwip.png(bcid, text, scale, rotate, options);

'bcid' is the name of the bwip-js barcode rendering function e.g.

'text' is the text to be bar coded.

'scale' is an integer value from 1 .. 10. Default is 2.

'rotate' takes the values: N normal, unrotated (the default) R clockwise, 90 rotation L counter-clockwise, 90 rotation I inverted, 180 rotation

'options' is the object what can take any of the bar code options defined in the BWIPP documentation.

Examples

(Coming soon)

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

(Nothing yet)

License

Copyright (c) 2014 Hearty, Oh.. Licensed under the MIT license.

FAQs

Package last updated on 03 Jan 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts