Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 2 months ago
JSON representation

A modern React Component for reading USB Barcode Scanners

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