bc-uuid
v0.2.0
Published
uuid generator
Downloads
14
Readme
Uuid
install
npm install --save bc-uuid babel-polyfill
Note:
babel-polyfill
is required before any of theuuid
stuff
Usage
Uuid.generate()
Uuid.generate() // will return a uuid
/* UUID STRUCTURE
*
* x = acceptable character /[0-9a-z]/
*
* |36--------------------------------|
* |8-----| |4-| |4-| |4-| |12--------|
* xxxxxxxx-1xxx-bcxx-xxxx-xxxxxxxxxxxx
* ^ ^ ^
* | | '- mark "bc"
* | |
* | '- uuid version
* |
* '- Timestamp (epoch in base36)
*/