Network Performance Monitor

    isbn-util

    2.0.1 • Public • Published

    Build Status Coverage Status

    ISBN Util

    Breaking change from version 2.0.0. From this version this module should be used as esm module. If you prefer use as CommonJS Module, install previous v1.1.2

    This module check if an ISBN is valid or not and also provide a method to generate a valid random ISBN-10 or ISBN-13

    Install

    npm i isbn-util --save-dev

    Usage

    import { validate, generate } from 'isbn-util';
    
    validate('84-481-2231-3');
    //=> true
    
    validate('0137081073');
    //=> true
    
    validate('isbn: 84-481-2231-3');
    //=> false
    
    generate('13');
    //=> '9780137081073'
    
    generate('13', 'prefix');
    //=> 'isbn-13: 9780137081073'
    
    generate('10');
    //=> '8448122313'

    Install

    npm i isbn-util

    DownloadsWeekly Downloads

    29

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    16.1 kB

    Total Files

    14

    Last publish

    Collaborators

    • juanmaruiz