@mainframe/utils-id
v0.1.1
Published
Unique identifier utilities
Downloads
13
Keywords
Readme
utils-id
Unique identifier utilities.
Installation
yarn add @mainframe/utils-id
Usage
import { uniqueID } from 'utils-id'
const id = uniqueID() // random string
Types
ID
Opaque type representing an unique ID as a string
.
API
idType()
Simple identity function casting the provided value as ID
to properly type-check.
Arguments
value: any
Returns ID
uniqueID()
Returns ID
License
MIT