vbb-translate-ids

4.0.0 • Public • Published

vbb-translate-ids

Translate VBB IDs from 9-digit to 12-digit and reverse.

npm version build status ISC-licensed gitter channel

Installing

npm install vbb-translate-ids

Usage

const {to12Digit, to9Digit} = require('vbb-translate-ids')
 
assert.strictEqual(to12Digit('900003201'), '900000003201')
assert.strictEqual(to9Digit('900000003201'), '900003201')

If to12Digit/to9Digit don't know how to translate the ID, they will just return it.

Contributing

If you have a question, found a bug or want to propose a feature, have a look at the issues page.

/vbb-translate-ids/

    Package Sidebar

    Install

    npm i vbb-translate-ids

    Weekly Downloads

    41

    Version

    4.0.0

    License

    ISC

    Unpacked Size

    2.97 kB

    Total Files

    4

    Last publish

    Collaborators

    • derhuerst