Skip to content

lukemorales/barcy

 
 

Repository files navigation

Barcy

A modern React Component for reading USB Barcode Scanners

Example

import * as React from 'react';
import * as ReactDOM from 'react-dom';
import Barcy from 'barcy';

const App = () => {
  const [value, setValue] = React.useState('');

  return (
    <>
      <Barcy onScan={(str) => setValue(str)} />
      <p>Scanned value: {value}</p>
    </>
  );
};

ReactDOM.render(<App />, document.getElementById('root'));

Documentation

todo

Development

  1. yarn

Install dependencies.

  1. yarn dev

Build the component, then start the demo site

  1. Focus the demo site, and use your barcode scanner.

Regards

This package is a modern version of https://github.com/kybarg/react-barcode-reader

About

A modern React Component for reading USB Barcode Scanners

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 95.6%
  • HTML 2.8%
  • JavaScript 1.6%