README.md 613 Bytes
Newer Older
Avris's avatar
Avris committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
# Avris Generator

Generate and validate numbers and identifiers like IBAN, ISBN, EAN, PESEL, BSN, passwords...

## GUI & API

    yarn
    yarn build
    yarn start
    
## Library

    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);
    }
    
## Copyright

* **Author:** Andrzej Prusinowski [(Avris.it)](https://avris.it)
* **Licence:** [MIT](https://mit.avris.it)