main
Last change
on this file since e48199a was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
280 bytes
|
Line | |
---|
1 | const ShortUniqueId = require('short-unique-id');
|
---|
2 |
|
---|
3 | const uid = new ShortUniqueId();
|
---|
4 |
|
---|
5 | console.log(uid.rnd(6));
|
---|
6 | console.log(uid.seq());
|
---|
7 |
|
---|
8 | const uidWithTimestamp = uid.stamp(32);
|
---|
9 | console.log(uidWithTimestamp);
|
---|
10 | console.log(uid.parseStamp(uidWithTimestamp));
|
---|
11 |
|
---|
12 | console.log(uid.version);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.