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 - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5

6

package.json
{
"name": "angular-barcode",
"version": "1.2.4",
"version": "1.2.5",
"description": "An angular directive for lindell's JsBarcode",

@@ -9,3 +9,3 @@ "main": "dist/barcode.es5.js",

"build-es5": "browserify src/barcode.js -o dist/barcode.es5.js -t [ babelify --presets [ es2015 ] ]",
"build": "npm run build-es5 && npm run build-es6"
"build": "npm run build-es5 && npm run build-es6"
},

@@ -38,4 +38,4 @@ "repository": {

"browserify": "^13.0.1",
"jsbarcode": "^3.3.14"
"jsbarcode": "^3.3.17"
}
}

@@ -1,12 +0,52 @@

# barcode
An angular directive for lindell's JsBarcode
# angular-barcode
An angular directive for [Lindell's JsBarcode](https://github.com/lindell/JsBarcode)
# Usage
## Installation
Take a look at the example/index.html
#### Install with NPM
```npm install --save angular-barcode```
# Dev
#### Install with JSPM
You will need to setup the canvas package manually: https://www.npmjs.com/package/canvas
```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:
```javascript
<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!](https://github.com/lindell/JsBarcode/wiki/Options)
# 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

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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