1.15.1-beta.0 • Published 1 year ago

@squiz/xaccel-uuid v1.15.1-beta.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

uuid

Description

A utility for crating unique string id. It can be used both on the server and client side. Package will automatically detect the environment and use available methods to create the identifier. It uses window.crypto on the client-side and native JS methods on the server.

Usage

import uuid from @squiz/xaccel-uuid;

const myCustomId = uuid()

You can assign created identifier anywhere you want. Unique id's are required in some other plug-and-play components e.g. @squiz/xaccel-collapsible