js-isin-validator
v1.0.6
Published
International Securities Identification Number (ISIN) Validator
Downloads
1,793
Maintainers
Readme
ISIN Validator
International Securities Identification Number (ISIN) Validator
Install
$ npm install js-isin-validator --save
Run the specs
$ yarn test
Usage
const validator = require('js-isin-validator');
// Use for simple type checking
if (validator.isIsinValid(isin)) {
// cool
}
// Get check digit
const checkDigit = validator.calcIsinCheckDigit(isin);
// Get the list of the valid countries
const countries = validator.countries;
Changelog
1.0.0
- Initial commit
1.0.1
- Add Travis config
1.0.2
- Fix entrypoint
1.0.3
- Add International Securities country code
1.0.4
- Allow lowercase ISINs
1.0.5
- Include missing dist/index.js updated
1.0.6
- Update dependencies
- Fix issue Module not found: Error: Can't resolve '../data/countries'