Version 1, based on timestamp and MAC address (RFC 4122)
import * as uuid from 'uuid';console.log(uuid.v1()); // d149d808-63a7-11e8-8bff-90e2ba2ce5ec Copy
import * as uuid from 'uuid';console.log(uuid.v1()); // d149d808-63a7-11e8-8bff-90e2ba2ce5ec
Deprecated
Version 1, based on timestamp and MAC address (RFC 4122)
Example