Philipp Partosch 46a936d7de added all files to project | 2 years ago | |
---|---|---|
.. | ||
index.js | 2 years ago | |
license.md | 2 years ago | |
package.json | 2 years ago | |
readme.md | 2 years ago |
Translate VBB IDs from 9-digit to 12-digit and reverse.
npm install vbb-translate-ids
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.
If you have a question, found a bug or want to propose a feature, have a look at the issues page.