uniquestring

0.0.2 • Public • Published

uniquestring npm version

Super simple function which generates pseudo-random string based on current timestamp and Math.random call.

import uniqueString from 'uniquestring';

const unique = uniqueString(); // returns something similar to 1bl73a23duqt
const uniquePrefixed = uniqueString('foo_'); // returns something similar to foo_1bl73a23duqt

Installing

npm install uniquestring

or

<script src="path/to/uniquestring.js"></script>

/uniquestring/

    Package Sidebar

    Install

    npm i uniquestring

    Weekly Downloads

    3

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • finom