https://github.com/tiaanduplessis/is-itf14
Check if value is valid ITF14 barcode
https://github.com/tiaanduplessis/is-itf14
barcode itf14 validation
Last synced: 8 months ago
JSON representation
Check if value is valid ITF14 barcode
- Host: GitHub
- URL: https://github.com/tiaanduplessis/is-itf14
- Owner: tiaanduplessis
- License: mit
- Created: 2017-04-16T14:58:38.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-06-02T22:37:09.000Z (about 7 years ago)
- Last Synced: 2025-06-22T08:16:00.921Z (12 months ago)
- Topics: barcode, itf14, validation
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
is-itf14
Check if value valid ITF14 barcode
Table of Contents
Table of Contents
## Install
[](https://greenkeeper.io/)
```sh
$ npm install --save is-itf14
# OR
$ yarn add is-itf14
```
## Usage
Module exports a single function that takes a `string` as argument and returns `bool`.
```js
const isItf14 = require('is-itf14')
console.log(isItf14('00123456789012')) // true
// Without checksum
console.log(isItf14('0012345678901')) // true
console.log(isItf14('foobarbaz')) // false
```
## CLI
```sh
$ npm install --global is-itf14
# OR
$ yarn global add is-itf14
```
Then:
```sh
$ isItf14 00123456789012
# 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.