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

angular-barcode

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-barcode

An angular directive for lindell's JsBarcode

  • 1.4.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
214
decreased by-45.13%
Maintainers
1
Weekly downloads
 
Created
Source

angular-barcode

An angular directive for Lindell's JsBarcode

Installation

Install with NPM

npm install --save angular-barcode

Install with JSPM

jspm install npm:angular-barcode

Import (if using JSPM)
import barcode from 'angular-barcode';
Or include the script in your code
<script src="node_modules/angular-barcode/dist/barcode.es5.js"></script>
Add it as a module to angular
angular.module('MyExampleApp', ['barcode']);

Usage

Default values:

<barcode bc-text="Hello World!" bc-type="svg" bc-format="CODE128" bc-line-color="#000000"
         bc-width="2" bc-height="100" bc-display-value="true" bc-font-options=""
         bc-font="monospace" bc-text-align="center" bc-text-position="bottom"
         bc-text-margin="2" bc-font-size="20" bc-background="#ffffff" bc-margin="0" bc-marginTop="undefined"
         bc-marginBottom="undefined" bc-marginLeft="undefined" bc-marginRight="undefined">
</barcode>

Do not forget the closing tag </barcode> if you intend to generate SVGs.

-Take a look at the example/index.html file.

For more details you should definitely check out JSBarcode's Wiki!

Dev / Other

This package is written in ES2015 and uses browserify and babelify.

For versions older than 1.2.5:

You will need to setup the canvas package manually: https://www.npmjs.com/package/canvas

Keywords

FAQs

Package last updated on 21 Jan 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc