https://github.com/tiaanduplessis/codebar-regex
Regular expression for matching codebar barcode
https://github.com/tiaanduplessis/codebar-regex
barcode codebar regex regular-expression
Last synced: 6 months ago
JSON representation
Regular expression for matching codebar barcode
- Host: GitHub
- URL: https://github.com/tiaanduplessis/codebar-regex
- Owner: tiaanduplessis
- License: mit
- Created: 2017-04-16T13:18:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-06-02T22:55:33.000Z (over 6 years ago)
- Last Synced: 2024-11-13T16:48:15.279Z (about 1 year ago)
- Topics: barcode, codebar, regex, regular-expression
- Language: JavaScript
- Size: 367 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
codebar-regex
Regular expression for matching codebar barcode
Table of Contents
Table of Contents
## Install
[](https://greenkeeper.io/)
```sh
$ npm install --save codebar-regex
# OR
$ yarn add codebar-regex
```
## Usage
```js
const codebarRegex = require('codebar-regex')
console.log(codebarRegex().test('A40156B')) // true
console.log(codebarRegex().test('A31117013206375B')) // true
```
## CLI
```sh
$ npm install --global codebar-regex
# OR
$ yarn global add codebar-regex
```
Then:
```sh
$ codebar A40156B
# true
```
## Contribute
Contributions are welcome. Please open up an issue or create PR if you would like to help out.
Note: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.
## License
Licensed under the MIT License.