0.2.1 • Published 5 years ago
@determapp/id v0.2.1
DetermApp ID Generator
DetermApp uses IDs with the length of 16 with 0-9
, a-z
and A-Z
.
They look like NZrf4broAoxrdBwe
.
This library allows to create such IDs and to check if and provided ID matches that schema.
import { generateId, isIdValid } from '@determapp/id';
const myId = generateId();
const mySecondId = generateId();
// myId !== mySecondId
isIdValid(myId); // === true
isIdValid('something'); // === false
isIdValid('somethingtotest2'); // === true because it matches the schema
Commands
npm run build
- builds this component
- executed as
prepare
hook