JSPM

library-lib

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q28907F
  • License MIT

A collection of helpful functions for parsing and manipulating library related data.

Package Exports

  • library-lib

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (library-lib) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

library-lib

Unit tests

A collection of helpful functions for parsing and manipulating library related data.

Install

npm install --save library-lib

or

yarn install library-lib

Common Usage

Convert an isbn10 number to isbn13:
import { Isbn } from "library-lib";

const isbn10 = '0415389550'

// via Isbn instance
const isbn = Isbn.parse(isbn10)
let isbn13 = isbn.toIsbn13());

// or via static method
isbn13 = Isbn.toIsbn13(isbn10);

Convert an isbn13 number to isbn10:

import { Isbn } from "library-lib";

const isbn13 = '978-0-415-38955-6';

// via Isbn instance
const isbn = Isbn.parse(isbn13)
let isbn10 = isbn.toIsbn10());

// or via static method
isbn10 = Isbn.toIsbn10(isbn13);