@mainframe/utils-id

0.1.1 • Public • Published

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

  1. value: any

Returns ID

uniqueID()

Returns ID

License

MIT

Dependencies (1)

Dev Dependencies (1)

Package Sidebar

Install

npm i @mainframe/utils-id

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

2.42 kB

Total Files

7

Last publish

Collaborators

  • sarahwiley
  • mosic
  • aclarke
  • howleysv
  • diogoperillo
  • paul_lecam