To use UIDs modules, all you need to do is install the @uids/uids
package:
$ yarn add @uids/uid
# or
$ npm install @uids/uids
At the moment, the library provides the following modules:
uid
uid-local
uid-uuid
uid-nano
For example, you can use the uid-uuid
module like this:
import { UUID } from '@uids/uid-uuid'
const uuid1 = new UUID()
const uuid2 = new UUID()
console.log(uuid1.equals(uuid2)) // produces 'false'
MIT © Alexander Lapygin