angular-barcode
Advanced tools
Comparing version 1.2.4 to 1.2.5
{ | ||
"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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
189642
4276
53
0