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

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

Awesome Lists containing this project

README

          

is-itf14



Check if value valid ITF14 barcode





Package version


Downloads


Standard


Travis Build


Standard Readme


GitHub version


Dependency CI


License


PRs


Donate






Github Watch Badge


Github Star Badge


Tweet





Built with ❤︎ by Tiaan and contributors

Table of Contents

Table of Contents

  • Install

  • Usage

  • API

  • CLI

  • Contribute

  • License
  • ## Install

    [![Greenkeeper badge](https://badges.greenkeeper.io/tiaanduplessis/is-itf14.svg)](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.