uniquestring
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>