react-jsbarcode
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -1,2 +0,2 @@ | ||
import * as React from 'react'; | ||
/// <reference types="react" /> | ||
import { Options } from 'jsbarcode'; | ||
@@ -3,0 +3,0 @@ export declare const enum Renderer { |
{ | ||
"name": "react-jsbarcode", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "JSBarcode component for React", | ||
@@ -36,17 +36,17 @@ "homepage": "http://github.com/iamchathu/react-jsbarcode", | ||
"@rollup/plugin-typescript": "^8.2.5", | ||
"@types/react": "^17.0.27", | ||
"@typescript-eslint/eslint-plugin": "^4.33.0", | ||
"@typescript-eslint/parser": "^4.33.0", | ||
"eslint": "^7.32.0", | ||
"eslint-config-airbnb": "^18.2.1", | ||
"eslint-config-airbnb-typescript": "^14.0.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-import": "^2.24.2", | ||
"eslint-plugin-jsx-a11y": "^6.4.1", | ||
"eslint-plugin-react": "^7.26.1", | ||
"eslint-plugin-react-hooks": "^4.2.0", | ||
"@types/react": "^17.0.39", | ||
"@typescript-eslint/eslint-plugin": "^5.13.0", | ||
"@typescript-eslint/parser": "^5.13.0", | ||
"eslint": "^8.10.0", | ||
"eslint-config-airbnb": "^19.0.4", | ||
"eslint-config-airbnb-typescript": "^16.1.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-jsx-a11y": "^6.5.1", | ||
"eslint-plugin-react": "^7.29.3", | ||
"eslint-plugin-react-hooks": "^4.3.0", | ||
"husky": "^7.0.2", | ||
"install-peers-cli": "^2.2.0", | ||
"lint-staged": "^11.2.0", | ||
"prettier": "^2.4.1", | ||
"prettier": "^2.5.1", | ||
"rimraf": "^3.0.2", | ||
@@ -56,3 +56,3 @@ "rollup": "^2.58.0", | ||
"standard-version": "^9.3.1", | ||
"typescript": "^4.4.3" | ||
"typescript": "^4.6.2" | ||
}, | ||
@@ -59,0 +59,0 @@ "peerDependencies": { |
@@ -14,2 +14,6 @@ # react-jsbarcode | ||
## CodeSandbox Demo | ||
[![Edit react-jsbarcode](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/react-jsbarcode-2659g?fontsize=14&hidenavigation=1&theme=dark) | ||
## Installation | ||
@@ -34,6 +38,6 @@ | ||
```tsx | ||
import ReactBarcode from 'react-jsbarcode'; | ||
import Barcode from 'react-jsbarcode'; | ||
const App = () => { | ||
return <ReactBarcode value="ABC123" />; | ||
return <Barcode value="ABC123" />; | ||
}; | ||
@@ -45,6 +49,6 @@ ``` | ||
```tsx | ||
import ReactBarcode from 'react-jsbarcode'; | ||
import Barcode from 'react-jsbarcode'; | ||
const App = () => { | ||
return <ReactBarcode value="ABC123" options={{ format: 'code128' }} renderer="svg" />; | ||
return <Barcode value="ABC123" options={{ format: 'code128' }} renderer="svg" />; | ||
}; | ||
@@ -58,1 +62,3 @@ ``` | ||
JSBarcode supports rendering to SVG, image and canvas. Default renderer is 'svg'. | ||
[![Edit react-jsbarcode](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/react-jsbarcode-2659g?fontsize=14&hidenavigation=1&theme=dark) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61
782967
8
5116