alldata-keygen
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -48,4 +48,7 @@ /* | ||
var unique = dateformat(now, "UTC:l" + nowHr); | ||
while (unique.length < 12) { | ||
unique += "0"; | ||
} | ||
return year + month + day + 'T' + hours + minutes + seconds + unique; | ||
}; |
{ | ||
"name": "alldata-keygen", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "AllData key generation module", | ||
@@ -14,3 +14,3 @@ "scripts": { | ||
"type": "git", | ||
"url": "git@github.com:alldata/alldata-keygen.git" | ||
"url": "git@github.com:tristanls/alldata-keygen.git" | ||
}, | ||
@@ -17,0 +17,0 @@ "keywords": [ |
@@ -7,3 +7,3 @@ # alldata-keygen | ||
Key generation module for [AllData](https://github.com/alldata/alldata), a distributed master-less write-once immutable event store database implementing "All Data" part of [Lambda Architecture](http://www.slideshare.net/nathanmarz/runaway-complexity-in-big-data-and-a-plan-to-stop-it). | ||
Key generation module for [AllData](https://github.com/tristanls/alldata), a distributed master-less append-only immutable event store database implementing "All Data" part of [Lambda Architecture](http://www.slideshare.net/nathanmarz/runaway-complexity-in-big-data-and-a-plan-to-stop-it). | ||
@@ -38,12 +38,12 @@ ## Usage | ||
Format is `yyyymmddTHHMMsslllnnnnnnnnn` | ||
Format is `YYYYMMDDThhmmsslllnnnnnnnnn`: | ||
* `yyyy` current UTC year | ||
* `mm` current UTC month | ||
* `dd` current UTC day | ||
* `YYYY` current UTC year | ||
* `MM` current UTC month | ||
* `DD` current UTC day | ||
* `T` time separator | ||
* `HH` current UTC hours | ||
* `MM` current UTC minutes | ||
* `hh` current UTC hours | ||
* `mm` current UTC minutes | ||
* `ss` current UTC seconds | ||
* `lll` current UTC milliseconds | ||
* `nnnnnnnnn` nanoseconds "unique" marker from `process.hrtime()[1]`; could be less than 9 digits |
5976
67