10-digit
GET/api
Returns a list of available generators per country, and a list of available parameters.
GET/api/:country/:generator?param=value
Generates a string.
GET/api/:country/:generator/:number
Validates a string.
GET/api/barcode/ean13/:number.svg
Generate an SVG with a barcode
yarn add avris-generator
const gm = require('avris-generator');
const pesel = gm.generate('PL', 'pesel', {gender: 'm'});
try {
const data = gm.validate('PL', 'pesel', '12345678900');
// valid
} catch (e) {
// invalid
alert(e.message);
}