# isbn

> ISBN parsing, validation, and formatting utilities

Latest version **0.4.0** (published 2016-05-15) · 0 weekly downloads

## Install

```sh
npm install isbn
pnpm add isbn
yarn add isbn
bun add isbn
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2016-05-15 |
| First published | 2011-07-13 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.0.1 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 22 |
| Author | Hetappi |
| Maintainers | coolaj86, taitems |

## Links

- npm: https://www.npmjs.com/package/isbn
- Repository: https://github.com/coolaj86/isbnjs
- Homepage: http://isbnjs.googlecode.com
- Issues: https://github.com/coolaj86/isbnjs/issues
- npm.io page: https://npm.io/package/isbn

## Recent versions

- 0.4.0 (latest) — 2016-05-15
- 0.3.0 — 2016-05-15
- 0.2.0 — 2014-05-17
- 0.1.0 — 2011-07-13

## README

isbnjs
====

An ISBN JavaScript Library

    npm install isbn

    ender build isbn

    var ISBN = require('isbn').ISBN;

Now supports Bower 

    bower install isbn

Examples
====

[ISBN Parser Example](http://coolaj86.github.com/isbnjs/)

    var isbn10a = ISBN.parse('4873113369');
    isbn10a.isIsbn10();                       // true
    isbn10a.isIsbn13();                       // false
    isbn10a.asIsbn10();                       // 4873113369
    isbn10a.asIsbn10(true);                   // 4-87311-336-9
    isbn10a.asIsbn13();                       // 9784873113364
    isbn10a.asIsbn13(true);                   // 978-4-87311-336-4

    var isbn10b = ISBN.parse('1-933988-03-7');
    isbn10b.isIsbn10();                       // true

    var isbn13a = ISBN.parse('978-4-87311-336-4');
    isbn13a.isIsbn13();                       // true

    var isbn13b = ISBN.parse('9781590597279');
    isbn13b.isIsbn13();                       // true

    var foo = ISBN.parse('invalid format');   // null
    ISBN.asIsbn13('4-87311-336-9');           // 9784873113364
    ISBN.asIsbn10('978-4-87311-336-4', true); // 4-87311-336-9
    ISBN.hyphenate('9784873113364');          // 978-4-87311-336-4
    isbn13a.codes.source;                     // 978-4-87311-336-4
    isbn13a.codes.prefix;                     // 978
    isbn13a.codes.group;                      // 4
    isbn13a.codes.publisher;                  // 87311
    isbn13a.codes.article;                    // 336
    isbn13a.codes.check;                      // 4
    isbn13a.codes.check10;                    // 9
    isbn13a.codes.check13;                    // 4
    isbn13a.codes.groupname;                  // Japan

---
_Source: https://npm.io/package/isbn · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
