uniqid

Type:Function
Status:stable
Since:1.0.0
Platform:node
@blackbyte.sugar.node.string

Generate a unique identifier string using UUID v4. Works using the uuid npm package under the hood.

Return

  1. -String

    A UUID v4 string (36 characters with dashes)

Example

import { uniqid } from '@blackbyte/sugar/string';
console.log(uniqid()); // => "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed"

Todo

  • testsnormal