react-jsbarcode
Advanced tools
Comparing version 0.2.2 to 0.2.3-beta.0
@@ -5,2 +5,4 @@ # Changelog | ||
### [0.2.3-beta.0](https://github.com/iamchathu/react-jsbarcode/compare/v0.2.2...v0.2.3-beta.0) (2021-10-12) | ||
### [0.2.2](https://github.com/iamchathu/react-jsbarcode/compare/v0.2.1...v0.2.2) (2021-10-08) | ||
@@ -7,0 +9,0 @@ |
@@ -18,2 +18,1 @@ import * as React from 'react'; | ||
export default ReactBarcode; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "react-jsbarcode", | ||
"version": "0.2.2", | ||
"version": "0.2.3-beta.0", | ||
"description": "JSBarcode component for React", | ||
@@ -11,2 +11,3 @@ "homepage": "http://github.com/iamchathu/react-jsbarcode", | ||
"main": "lib/index.js", | ||
"module": "lib/index.esm.js", | ||
"types": "lib/index.d.ts", | ||
@@ -20,3 +21,4 @@ "files": [ | ||
"clean": "rimraf lib/", | ||
"build": "tsc -b .", | ||
"tsc": "tsc -b .", | ||
"build": "rollup -c", | ||
"prepare": "install-peers && husky install", | ||
@@ -33,2 +35,5 @@ "lint": "eslint 'src/**/*.{ts,tsx}' --quiet --fix ", | ||
"@commitlint/config-conventional": "^13.2.0", | ||
"@rollup/plugin-commonjs": "^21.0.0", | ||
"@rollup/plugin-node-resolve": "^13.0.5", | ||
"@rollup/plugin-typescript": "^8.2.5", | ||
"@types/react": "^17.0.27", | ||
@@ -50,2 +55,4 @@ "@typescript-eslint/eslint-plugin": "^4.33.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.58.0", | ||
"rollup-plugin-peer-deps-external": "^2.2.4", | ||
"standard-version": "^9.3.1", | ||
@@ -62,4 +69,5 @@ "typescript": "^4.4.3" | ||
"jsbarcode", | ||
"barcode generator" | ||
"barcode generator", | ||
"react barcode" | ||
] | ||
} |
@@ -12,3 +12,3 @@ # react-jsbarcode | ||
This is a [React](https://reactjs.org) component wrapping up [jsbarcode](<[https://](https://github.com/lindell/JsBarcode)>). Written as a React functional component using React hooks. | ||
This is a [React](https://reactjs.org) component wrapping up [jsbarcode](<[https://](https://github.com/lindell/JsBarcode)>). Written as a React functional component using React hooks. <ReactBarcode /> | ||
@@ -31,10 +31,22 @@ ## Installation | ||
- Basic usage | ||
```tsx | ||
import ReactJSBarcode from 'react-jsbarcode'; | ||
import ReactBarcode from 'react-jsbarcode'; | ||
const App = () => { | ||
return <ReactJSBarcode value="ABC123" options={{ format: 'code128' }} renderer="svg" />; | ||
return <ReactBarcode value="ABC123" />; | ||
}; | ||
``` | ||
- Advanced usage | ||
```tsx | ||
import ReactBarcode from 'react-jsbarcode'; | ||
const App = () => { | ||
return <ReactBarcode value="ABC123" options={{ format: 'code128' }} renderer="svg" />; | ||
}; | ||
``` | ||
For all options refer jsbarcode [wiki](https://github.com/lindell/JsBarcode/wiki/Options). | ||
@@ -41,0 +53,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
785363
9
5134
55
25
1