Commit bcd46e5b authored by Vanja Retkovac's avatar Vanja Retkovac
Browse files

Add package json and first helper function

parent c0f02efb
export const uuidv4 = () =>
([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, c =>
// eslint-disable-next-line no-mixed-operators
(c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16)
)
\ No newline at end of file
{
"name": "@smartfactory/uuid",
"version": "1.0.0",
"description": "This package provides helper functions for creating UUIDs",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git@git.smartfactory.ch:smf/uuid.git"
},
"author": "Vanja Retkovac",
"license": "MIT"
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment