Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
javascript-barcode-reader
Advanced tools
Readme
Simple & Fast Barcode decoder for Browsers and Node.js capapable of reading Code128 (UCC/EAN-128), Code93, Code39, Standard/Industrial 2 of 5, Interleaved 2 of 5, Codabar and EAN-13 barcodes.
https://codesandbox.io/s/javascript-barcode-reader-liium
Recommended way to install is by using package manager (npm, yarn etc):
npm i javascript-barcode-reader
or use cdn:
<script src="//unpkg.com/javascript-barcode-reader"></script>
or download manually:
import javascriptBarcodeReader from 'javascript-barcode-reader'
javascriptBarcodeReader({
/* Image file Path || {data: Uint8ClampedArray, width, height} || HTML5 Canvas ImageData */
image: source,
barcode: 'code-2of5',
// barcodeType: 'industrial',
options: {
// useAdaptiveThreshold: true // for images with sahded portions
// singlePass: true
}
})
.then(code => {
console.log(code)
})
.catch(err => {
console.log(err)
})
javascriptBarcodeReader
will be available as global in Browsers.
javascriptBarcodeReader({
/* Image ID || HTML5 Image || HTML5 Canvas || HTML5 Canvas ImageData || Image URL */
image: source,
barcode: 'code-2of5',
// barcodeType: 'industrial',
options: {
// useAdaptiveThreshold: true // for images with sahded portions
// singlePass: true
}
})
.then(code => {
console.log(code)
})
.catch(err => {
console.log(err)
})
src
directory as a module.tests
directory using Jest
.Thanks goes to these wonderful people (emoji key):
Cristian Nitescu 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
FAQs
Simple & Fast Barcode decoder for Browser and Node.js
The npm package javascript-barcode-reader receives a total of 1,109 weekly downloads. As such, javascript-barcode-reader popularity was classified as popular.
We found that javascript-barcode-reader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.