Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 24 days 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 1 year ago)
- Default Branch: main
- Last Pushed: 2023-03-13T18:45:43.000Z (over 1 year ago)
- Last Synced: 2024-10-02T17:45:46.688Z (about 1 month ago)
- Topics: barcode, barcode-scanner, react
- Language: TypeScript
- Homepage: https://barcy.fyko.net
- Size: 1.3 MB
- Stars: 2
- Watchers: 2
- Forks: 2
- 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