1.0.2 • Published 3 years ago
h5-ubid v1.0.2
h5-ubid
a JavaScript function for Create an unique user id within h5 browser then cache in localstorage.
Installation
You can use this package on the server side as well as the client side.
Node.js:
npm install h5-ubid
API
createUuid(message);
message
--String
,Buffer
,Array
orUint8Array
- returns
String
Usage
var createUuid = require("h5-ubid");
console.log(createUuid("message"));
This will print the following
78e731027d8fd50ed642340b7c9a63b3