country and language data on ISBN groups
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
index.js
languages_and_countries.js
package.json

README.md

ISBN groups

country and language data on ISBN groups

WIP: your help is welcome to improve the countries/languages matching!

Installation

$ npm install --save isbn-groups

Usage

Example using isbn-groups and isbn2 for ISBN parsing

const parser = require('isbn2').ISBN.parse
const isbnGroups = require('isbn-groups')
  • example 1
const isbn = '9782707301529'
constprefix, group= parser(isbn).codes
// prefix: '978'
// group: '2'

isbnGroups[prefix][group]
// => { label: 'French', lang: 'fr' }
  • example 2
const isbn = '9789953211206'
constprefix, group= parser(isbn).codes
// prefix: '978'
// group: '9953'

isbnGroups[prefix][group]
// => { label: 'Lebanon', lang: 'ar' }

## See Also

  • isbn2: ISBN parsing, validation, and formatting utilities