1.0.1 • Published 9 months ago

euro-banknote v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

About

ZERO DEPENDENCIES

Check validity of euro banknote by serial number and get information about it.

There are currently 2 series of euro banknotes, both are covered by this library. Read more about euro banknotes here.

Usage

import { isValid, info } from 'euro-banknote';

console.log('NC5822415251 is valid: ' + isValid('NC5822415251'));
// NC5822415251 is valid: true

console.log('AB2222222221 is valid: ' + isValid('AB2222222221'));
// AB2222222221 is valid: false

console.log(info('NC5822415251'));
// { series: 2, country: 'Spain', printer: 'IMBISA' }

console.log(info('S57284012014'));
// { series: 1, country: 'Italy' }

Library is written in typescript, types are included.

1.0.1

9 months ago

1.0.0

9 months ago