View Source

uuid

Generates a unique ID. Adds a prefix so it is suitable for use as an HTML ID.

Based on this algorithm.

Installation#

npm i boundless-utils-uuid --save

Then use it like:

/** @jsx createElement */

import uuid from 'boundless-utils-uuid';

uuid(); // b-1f2cd27f-0754-4344-9d20-436a201b2f80