New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

isbn-groups

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isbn-groups

country and language data on ISBN groups

Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
101
20.24%
Maintainers
1
Weekly downloads
 
Created
Source

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'
const { prefix, group } = parser(isbn).codes
// prefix: '978'
// group: '2'

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

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

## See Also

  • isbn2: ISBN parsing, validation, and formatting utilities

Keywords

ISBN

FAQs

Package last updated on 17 Sep 2016

Related posts