react-boleto-reader
v1.0.1
Published
Utility to scan, via browser camera, brazilian-banking barcode.
Downloads
118
Maintainers
Readme
React Boleto Reader
Utility to read, via browser camera, brazilian-banking barcode.
Install
npm install --save react-boleto-reader
Recommendation
Use this component with smart devices, witch probably have high quality cameras.
Important
The project was built with React Hooks features, requiring versions starting from 16.8.x
.
Browser camera only will be available to use if:
- The device have a camera (KKK, sorry);
- Your application is running over HTTPS
To apps initializeds by create-react-app
, this should works:
HTTPS=true npm start
Usage
Examples at this codesandbox.
Could be better, right?
Sorry.
I dedicated about 32 hours to do this package, without any previous plan and idea, only with some inspirations. Running to delivery another company project, who is the principal and much biggier.
So, if you have any suggestions, or be comfortable to code some improvements, feel free to do so.
Special thanks
All the awesome projects which made this other one possible:
- Quagga
- Quagga2 by @ericblade
- Broleto (vaaaaaaaai Brasil, corooooi)
- This functional example by @saraiva1989 (valeu, meu considerado)
- Create React Library
- DinoSoftLabs by icon used on example page
License
MIT © udimberto