https://github.com/fyko/barcy
A modern React Component for reading USB Barcode Scanners
https://github.com/fyko/barcy
barcode barcode-scanner react
Last synced: about 1 year ago
JSON representation
A modern React Component for reading USB Barcode Scanners
- Host: GitHub
- URL: https://github.com/fyko/barcy
- Owner: Fyko
- License: mit
- Created: 2023-03-11T23:11:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-13T18:45:43.000Z (over 3 years ago)
- Last Synced: 2025-04-30T04:49:31.604Z (about 1 year ago)
- Topics: barcode, barcode-scanner, react
- Language: TypeScript
- Homepage: https://barcy.fyko.net
- Size: 1.3 MB
- Stars: 3
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Barcy
> A modern React Component for reading USB Barcode Scanners
## Example
```ts
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import Barcy from 'barcy';
const App = () => {
const [value, setValue] = React.useState('');
return (
<>
setValue(str)} />
Scanned value: {value}
>
);
};
ReactDOM.render(, document.getElementById('root'));
```
## Documentation
todo
## Development
1. `yarn`
Install dependencies.
2. `yarn dev`
Build the component, then start the demo site
3. Focus the demo site, and use your barcode scanner.
## Regards
This package is a modern version of https://github.com/kybarg/react-barcode-reader