{"_id":"ulid","_rev":"147111","name":"ulid","description":"A universally-unique, lexicographically-sortable, identifier generator","dist-tags":{"latest":"2.3.0"},"maintainers":[{"name":"alizain","email":"alizain.feerasta@gmail.com"}],"time":{"modified":"2021-06-03T11:30:17.000Z","created":"2016-08-01T18:51:24.441Z","2.3.0":"2018-01-03T20:03:25.558Z","2.2.3":"2017-12-04T22:29:16.765Z","2.2.2":"2017-11-27T23:08:33.404Z","2.2.1":"2017-10-31T18:47:49.442Z","2.2.0":"2017-10-26T00:46:30.933Z","2.0.1":"2017-10-25T23:02:27.189Z","2.0.0":"2017-10-25T21:43:04.976Z","1.1.1":"2017-10-25T04:02:21.529Z","1.1.0":"2017-10-24T02:21:01.221Z","1.0.2":"2017-10-17T15:16:08.680Z","1.0.0":"2017-09-09T19:59:40.102Z","0.2.0":"2017-06-20T14:00:38.342Z","0.1.0":"2016-08-01T18:51:24.441Z"},"users":{"hbarcelos":true,"robmcguinness":true,"herschel666":true},"author":{"name":"Alizain Feerasta"},"repository":{"type":"git","url":"git+https://github.com/ulid/javascript.git"},"versions":{"2.3.0":{"name":"ulid","version":"2.3.0","description":"A universally-unique, lexicographically-sortable, identifier generator","main":"./dist/index.umd.js","module":"./dist/index.esm.js","types":"./dist/index.d.ts","esnext":"./dist/index.js","repository":{"type":"git","url":"git+https://github.com/ulid/javascript.git"},"author":{"name":"Alizain Feerasta"},"license":"MIT","bugs":{"url":"https://github.com/ulid/javascript/issues"},"homepage":"https://github.com/ulid/javascript#readme","devDependencies":{"@types/node":"^8.0.47","babel-core":"^6.26.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.6.1","istanbul":"^0.4.4","lolex":"^2.1.3","matcha":"^0.7.0","mocha":"^2.5.3","rollup":"^0.50.0","rollup-plugin-babel":"^3.0.2","rollup-plugin-typescript":"^0.8.1","typedoc":"^0.9.0","typescript":"^2.5.3"},"scripts":{"ts":"tsc -p .","rollup":"rollup -c","build":"npm run ts && npm run rollup","test":"istanbul cover node_modules/mocha/bin/_mocha -- -R spec","perf":"matcha perf.js"},"files":["bin","dist","stubs"],"bin":{"ulid":"./bin/cli.js"},"browser":{"crypto":"./stubs/crypto.js"},"gitHead":"f45529c95994019125cdd5a497ab792e00ef57f2","_id":"ulid@2.3.0","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"alizain","email":"alizain.feerasta@gmail.com"},"dist":{"shasum":"93063522771a9774121a84d126ecd3eb9804071f","size":5699,"noattachment":false,"key":"/ulid/-/ulid-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ulid/download/ulid-2.3.0.tgz"},"maintainers":[{"name":"alizain","email":"alizain.feerasta@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ulid-2.3.0.tgz_1515009804722_0.14922706363722682"},"directories":{},"publish_time":1515009805558,"_hasShrinkwrap":false,"_cnpm_publish_time":1515009805558},"2.2.3":{"name":"ulid","version":"2.2.3","description":"A universally-unique, lexicographically-sortable, identifier generator","main":"./lib/index.umd.js","module":"./lib/index.js","types":"./lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/ulid/javascript.git"},"author":{"name":"Alizain Feerasta"},"license":"MIT","bugs":{"url":"https://github.com/ulid/javascript/issues"},"homepage":"https://github.com/ulid/javascript#readme","devDependencies":{"@types/node":"^8.0.47","babel-core":"^6.26.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.6.1","istanbul":"^0.4.4","lolex":"^2.1.3","matcha":"^0.7.0","mocha":"^2.5.3","rollup":"^0.50.0","rollup-plugin-babel":"^3.0.2","rollup-plugin-typescript":"^0.8.1","typedoc":"^0.9.0","typescript":"^2.5.3"},"scripts":{"ts":"tsc -p .","umd":"rollup -c","build":"npm run ts && npm run umd","test":"istanbul cover node_modules/mocha/bin/_mocha -- -R spec","perf":"matcha perf.js"},"files":["bin","lib"],"bin":{"ulid":"./bin/cli.js"},"gitHead":"6b7db7d713fb8a9e1462ee5fbf3c8f98389ae9f7","_id":"ulid@2.2.3","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"alizain","email":"alizain.feerasta@gmail.com"},"dist":{"shasum":"0e5ca0306823458e5cb397d53cfe2640af6c486f","size":5511,"noattachment":false,"key":"/ulid/-/ulid-2.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/ulid/download/ulid-2.2.3.tgz"},"maintainers":[{"name":"alizain","email":"alizain.feerasta@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ulid-2.2.3.tgz_1512426555836_0.3135877673048526"},"directories":{},"publish_time":1512426556765,"_hasShrinkwrap":false,"_cnpm_publish_time":1512426556765},"2.2.2":{"name":"ulid","version":"2.2.2","description":"A universally-unique, lexicographically-sortable, identifier generator","main":"./lib/index.umd.js","module":"./lib/index.js","types":"./lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/alizain/ulid.git"},"author":{"name":"Alizain Feerasta"},"license":"MIT","bugs":{"url":"https://github.com/alizain/ulid/issues"},"homepage":"https://github.com/alizain/ulid#readme","devDependencies":{"@types/node":"^8.0.47","babel-core":"^6.26.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.6.1","istanbul":"^0.4.4","lolex":"^2.1.3","matcha":"^0.7.0","mocha":"^2.5.3","rollup":"^0.50.0","rollup-plugin-babel":"^3.0.2","rollup-plugin-typescript":"^0.8.1","typedoc":"^0.9.0","typescript":"^2.5.3"},"scripts":{"ts":"tsc -p .","umd":"rollup -c","build":"npm run ts && npm run umd","test":"istanbul cover node_modules/mocha/bin/_mocha -- -R spec","perf":"matcha perf.js"},"files":["bin","lib"],"bin":{"ulid":"./bin/cli.js"},"gitHead":"ab4746dcb65b17a818c29764e2477f142706cb4b","_id":"ulid@2.2.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"alizain","email":"alizain.feerasta@gmail.com"},"dist":{"shasum":"27cfa22848a213fb31bd5bc31dfc6712c1ad1471","size":7517,"noattachment":false,"key":"/ulid/-/ulid-2.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ulid/download/ulid-2.2.2.tgz"},"maintainers":[{"name":"alizain","email":"alizain.feerasta@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ulid-2.2.2.tgz_1511824112430_0.9521222810726613"},"directories":{},"publish_time":1511824113404,"_hasShrinkwrap":false,"_cnpm_publish_time":1511824113404},"2.2.1":{"name":"ulid","version":"2.2.1","description":"A universally-unique, lexicographically-sortable, identifier generator","main":"./lib/index.umd.js","module":"./lib/index.js","types":"./lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/alizain/ulid.git"},"author":{"name":"Alizain Feerasta"},"license":"MIT","bugs":{"url":"https://github.com/alizain/ulid/issues"},"homepage":"https://github.com/alizain/ulid#readme","devDependencies":{"@types/node":"^8.0.47","babel-core":"^6.26.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.6.1","istanbul":"^0.4.4","lolex":"^2.1.3","matcha":"^0.7.0","mocha":"^2.5.3","rollup":"^0.50.0","rollup-plugin-babel":"^3.0.2","rollup-plugin-typescript":"^0.8.1","typedoc":"^0.9.0","typescript":"^2.5.3"},"scripts":{"ts":"tsc -p .","umd":"rollup -c","build":"npm run ts && npm run umd","test":"istanbul cover node_modules/mocha/bin/_mocha -- -R spec","perf":"matcha perf.js"},"files":["bin","lib"],"bin":{"ulid":"./bin/cli.js"},"gitHead":"6915ff233a4f2274f6726b8fc2ad71eca87de292","_id":"ulid@2.2.1","_npmVersion":"5.4.2","_nodeVersion":"8.8.1","_npmUser":{"name":"alizain","email":"alizain.feerasta@gmail.com"},"dist":{"shasum":"fcd7eda844e8d336d6aa67d9dfdd6ea644ee3b18","size":7470,"noattachment":false,"key":"/ulid/-/ulid-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ulid/download/ulid-2.2.1.tgz"},"maintainers":[{"name":"alizain","email":"alizain.feerasta@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ulid-2.2.1.tgz_1509475668470_0.36013125628232956"},"directories":{},"publish_time":1509475669442,"_cnpm_publish_time":1509475669442,"_hasShrinkwrap":false},"2.2.0":{"name":"ulid","version":"2.2.0","description":"A universally-unique, lexicographically-sortable, identifier generator","main":"./lib/index.umd.js","module":"./lib/index.js","types":"./lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/alizain/ulid.git"},"author":{"name":"Alizain Feerasta"},"license":"MIT","bugs":{"url":"https://github.com/alizain/ulid/issues"},"homepage":"https://github.com/alizain/ulid#readme","devDependencies":{"@types/node":"^8.0.47","babel-core":"^6.26.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.6.1","istanbul":"^0.4.4","lolex":"^2.1.3","matcha":"^0.7.0","mocha":"^2.5.3","rollup":"^0.50.0","rollup-plugin-babel":"^3.0.2","rollup-plugin-typescript":"^0.8.1","typedoc":"^0.9.0","typescript":"^2.5.3"},"scripts":{"ts":"tsc -p .","umd":"rollup -c","build":"npm run ts && npm run umd","test":"istanbul cover node_modules/mocha/bin/_mocha -- -R spec","perf":"matcha perf.js"},"files":["bin","lib"],"bin":{"ulid":"./bin/cli.js"},"gitHead":"071478d2039930c62c84dd7d21b3d26041fcd450","_id":"ulid@2.2.0","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"alizain","email":"alizain.feerasta@gmail.com"},"dist":{"shasum":"6c6cf6650397d4f89297a3abee2e75919d3f0d61","size":7430,"noattachment":false,"key":"/ulid/-/ulid-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ulid/download/ulid-2.2.0.tgz"},"maintainers":[{"name":"alizain","email":"alizain.feerasta@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ulid-2.2.0.tgz_1508978789851_0.5706929573789239"},"directories":{},"publish_time":1508978790933,"_hasShrinkwrap":false,"_cnpm_publish_time":1508978790933},"2.0.1":{"name":"ulid","version":"2.0.1","description":"A universally unique lexicographically sortable identifier generator","main":"./dist/ulid.umd.js","module":"./dist/ulid.es.js","repository":{"type":"git","url":"git+https://github.com/alizain/ulid.git"},"author":{"name":"Alizain Feerasta"},"license":"MIT","bugs":{"url":"https://github.com/alizain/ulid/issues"},"homepage":"https://github.com/alizain/ulid#readme","devDependencies":{"@types/node":"^8.0.47","babel-core":"^6.26.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.6.1","istanbul":"^0.4.4","lolex":"^2.1.3","matcha":"^0.7.0","mocha":"^2.5.3","rollup":"^0.50.0","rollup-plugin-babel":"^3.0.2","rollup-plugin-typescript":"^0.8.1","typescript":"^2.5.3"},"scripts":{"build":"rollup -c","test":"istanbul cover node_modules/mocha/bin/_mocha -- -R spec","perf":"matcha perf.js"},"bin":{"ulid":"./cli.js"},"gitHead":"e3328733fd26ffa1f79529fd54bcfcbe84cbbafe","_id":"ulid@2.0.1","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"alizain","email":"alizain.feerasta@gmail.com"},"dist":{"shasum":"a369c14889233c17b5d4fc58d9da42cb329e4ca6","size":29217,"noattachment":false,"key":"/ulid/-/ulid-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ulid/download/ulid-2.0.1.tgz"},"maintainers":[{"name":"alizain","email":"alizain.feerasta@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ulid-2.0.1.tgz_1508972546127_0.8357049038168043"},"directories":{},"publish_time":1508972547189,"_cnpm_publish_time":1508972547189,"_hasShrinkwrap":false},"2.0.0":{"name":"ulid","version":"2.0.0","description":"A universally unique lexicographically sortable identifier generator","main":"./dist/ulid.umd.js","module":"./dist/ulid.es.js","repository":{"type":"git","url":"git+https://github.com/alizain/ulid.git"},"author":{"name":"Alizain Feerasta"},"license":"MIT","bugs":{"url":"https://github.com/alizain/ulid/issues"},"homepage":"https://github.com/alizain/ulid#readme","devDependencies":{"@types/node":"^8.0.47","babel-core":"^6.26.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.6.1","istanbul":"^0.4.4","lolex":"^2.1.3","matcha":"^0.7.0","mocha":"^2.5.3","rollup":"^0.50.0","rollup-plugin-babel":"^3.0.2","rollup-plugin-typescript":"^0.8.1","typescript":"^2.5.3"},"scripts":{"test":"istanbul cover node_modules/mocha/bin/_mocha -- -R spec","perf":"matcha perf.js"},"bin":{"ulid":"./cli.js"},"gitHead":"c2e6180e540d6ed40eb13993b90a92528d7f67dd","_id":"ulid@2.0.0","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"alizain","email":"alizain.feerasta@gmail.com"},"dist":{"shasum":"5bfe2cf1abf01399ea96127a8f2da4e86803e519","size":28730,"noattachment":false,"key":"/ulid/-/ulid-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ulid/download/ulid-2.0.0.tgz"},"maintainers":[{"name":"alizain","email":"alizain.feerasta@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ulid-2.0.0.tgz_1508967783884_0.5676955999806523"},"directories":{},"publish_time":1508967784976,"_cnpm_publish_time":1508967784976,"_hasShrinkwrap":false},"1.1.1":{"name":"ulid","version":"1.1.1","description":"A universally unique lexicographically sortable identifier generator","main":"index.js","repository":{"type":"git","url":"git+https://github.com/alizain/ulid.git"},"author":{"name":"Alizain Feerasta"},"license":"MIT","bugs":{"url":"https://github.com/alizain/ulid/issues"},"homepage":"https://github.com/alizain/ulid#readme","devDependencies":{"@types/node":"^8.0.47","istanbul":"^0.4.4","lolex":"^2.1.3","matcha":"^0.7.0","mocha":"^2.5.3"},"scripts":{"test":"istanbul cover node_modules/mocha/bin/_mocha -- -R spec","perf":"matcha perf.js"},"bin":{"ulid":"./cli.js"},"gitHead":"2fd6e291727c349e4e97a3a94ca2e2c3bf924794","_id":"ulid@1.1.1","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"alizain","email":"alizain.feerasta@gmail.com"},"dist":{"shasum":"8dbaec7040767f117f52f31554314d9963919b81","size":20783,"noattachment":false,"key":"/ulid/-/ulid-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ulid/download/ulid-1.1.1.tgz"},"maintainers":[{"name":"alizain","email":"alizain.feerasta@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ulid-1.1.1.tgz_1508904140393_0.8891676715575159"},"directories":{},"publish_time":1508904141529,"_hasShrinkwrap":false,"_cnpm_publish_time":1508904141529},"1.1.0":{"name":"ulid","version":"1.1.0","description":"A universally unique lexicographically sortable identifier generator","main":"index.js","repository":{"type":"git","url":"git+https://github.com/alizain/ulid.git"},"author":{"name":"Alizain Feerasta"},"license":"MIT","bugs":{"url":"https://github.com/alizain/ulid/issues"},"homepage":"https://github.com/alizain/ulid#readme","devDependencies":{"istanbul":"^0.4.4","lolex":"^2.1.3","matcha":"^0.7.0","mocha":"^2.5.3"},"scripts":{"test":"istanbul cover node_modules/mocha/bin/_mocha -- -R spec","perf":"matcha perf.js"},"bin":{"ulid":"./cli.js"},"gitHead":"40dfa32980fed3d4bc2229ee17e90793ec500553","_id":"ulid@1.1.0","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"alizain","email":"alizain.feerasta@gmail.com"},"dist":{"shasum":"3caf180f2d4848ba6440b785966c97913d7c0397","size":21494,"noattachment":false,"key":"/ulid/-/ulid-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ulid/download/ulid-1.1.0.tgz"},"maintainers":[{"name":"alizain","email":"alizain.feerasta@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ulid-1.1.0.tgz_1508811660146_0.4620644059032202"},"directories":{},"publish_time":1508811661221,"_cnpm_publish_time":1508811661221,"_hasShrinkwrap":false},"1.0.2":{"name":"ulid","version":"1.0.2","description":"A universally unique lexicographically sortable identifier generator","main":"index.js","repository":{"type":"git","url":"git+https://github.com/alizain/ulid.git"},"author":{"name":"Alizain Feerasta"},"license":"MIT","bugs":{"url":"https://github.com/alizain/ulid/issues"},"homepage":"https://github.com/alizain/ulid#readme","devDependencies":{"istanbul":"^0.4.4","matcha":"^0.7.0","mocha":"^2.5.3"},"scripts":{"test":"istanbul cover node_modules/mocha/bin/_mocha -- -R spec","perf":"matcha perf.js"},"bin":{"ulid":"./cli.js"},"gitHead":"bc2cf5588ac9c7040b1cd316a96334efc36f51ae","_id":"ulid@1.0.2","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"alizain","email":"alizain.feerasta@gmail.com"},"dist":{"shasum":"a1173164b94e84a26e1625b1dc4e1fece650fadd","size":12646,"noattachment":false,"key":"/ulid/-/ulid-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ulid/download/ulid-1.0.2.tgz"},"maintainers":[{"name":"alizain","email":"alizain.feerasta@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ulid-1.0.2.tgz_1508253367642_0.6953151489142329"},"directories":{},"publish_time":1508253368680,"_cnpm_publish_time":1508253368680,"_hasShrinkwrap":false},"1.0.0":{"name":"ulid","version":"1.0.0","description":"A universally unique lexicographically sortable identifier generator","main":"index.js","repository":{"type":"git","url":"git+https://github.com/alizain/ulid.git"},"author":{"name":"Alizain Feerasta"},"license":"MIT","bugs":{"url":"https://github.com/alizain/ulid/issues"},"homepage":"https://github.com/alizain/ulid#readme","devDependencies":{"istanbul":"^0.4.4","matcha":"^0.7.0","mocha":"^2.5.3"},"scripts":{"test":"istanbul cover node_modules/mocha/bin/_mocha -- -R spec","perf":"matcha perf.js"},"bin":{"ulid":"./cli.js"},"gitHead":"a372928f13e4ca52b14f9155e3ca5fd650ecd3f8","_id":"ulid@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"alizain","email":"alizain.feerasta@gmail.com"},"dist":{"shasum":"4748d393d138dcf497c281deefbf619286e790aa","size":12940,"noattachment":false,"key":"/ulid/-/ulid-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ulid/download/ulid-1.0.0.tgz"},"maintainers":[{"name":"alizain","email":"alizain.feerasta@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ulid-1.0.0.tgz_1504987179115_0.9914691667072475"},"directories":{},"publish_time":1504987180102,"_hasShrinkwrap":false,"_cnpm_publish_time":1504987180102},"0.2.0":{"name":"ulid","version":"0.2.0","description":"A universally unique lexicographically sortable identifier generator","main":"index.js","repository":{"type":"git","url":"git+https://github.com/alizain/ulid.git"},"author":{"name":"Alizain Feerasta"},"license":"MIT","bugs":{"url":"https://github.com/alizain/ulid/issues"},"homepage":"https://github.com/alizain/ulid#readme","devDependencies":{"istanbul":"^0.4.4","matcha":"^0.7.0","mocha":"^2.5.3"},"scripts":{"test":"istanbul cover node_modules/mocha/bin/_mocha -- -R spec","perf":"matcha perf.js"},"gitHead":"b7ee5a55c0119ac96bae6668ecf67e721696a712","_id":"ulid@0.2.0","_shasum":"f43cf55c7807aec30d6695cb3bfe93b2e30b61a4","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"alizain","email":"alizain.feerasta@gmail.com"},"dist":{"shasum":"f43cf55c7807aec30d6695cb3bfe93b2e30b61a4","size":12395,"noattachment":false,"key":"/ulid/-/ulid-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ulid/download/ulid-0.2.0.tgz"},"maintainers":[{"name":"alizain","email":"alizain.feerasta@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ulid-0.2.0.tgz_1497967237165_0.6905591250397265"},"directories":{},"publish_time":1497967238342,"_cnpm_publish_time":1497967238342,"_hasShrinkwrap":false},"0.1.0":{"name":"ulid","version":"0.1.0","description":"A universally unique lexicographically sortable identifier generator","main":"index.js","repository":{"type":"git","url":"git+https://github.com/alizain/ulid.git"},"author":{"name":"Alizain Feerasta"},"license":"MIT","bugs":{"url":"https://github.com/alizain/ulid/issues"},"homepage":"https://github.com/alizain/ulid#readme","devDependencies":{"istanbul":"^0.4.4","matcha":"^0.7.0","mocha":"^2.5.3"},"scripts":{"test":"istanbul cover node_modules/mocha/bin/_mocha -- -R spec","perf":"matcha perf.js"},"gitHead":"ae3d1f04d4368846f96e897deaa0d1430ecd1500","_id":"ulid@0.1.0","_shasum":"9044142d2b4b7bb2551ed7d6e2d301c46e1d3725","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"alizain","email":"alizain.feerasta@gmail.com"},"dist":{"shasum":"9044142d2b4b7bb2551ed7d6e2d301c46e1d3725","size":10512,"noattachment":false,"key":"/ulid/-/ulid-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ulid/download/ulid-0.1.0.tgz"},"maintainers":[{"name":"alizain","email":"alizain.feerasta@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ulid-0.1.0.tgz_1470077482636_0.3630884711164981"},"directories":{},"publish_time":1470077484441,"_cnpm_publish_time":1470077484441,"_hasShrinkwrap":false}},"readme":"<h1 align=\"center\">\n\t<br>\n\t<br>\n\t<img width=\"360\" src=\"logo.png\" alt=\"ulid\">\n\t<br>\n\t<br>\n\t<br>\n</h1>\n\n[![Build Status](https://travis-ci.org/ulid/javascript.svg?branch=master)](https://travis-ci.org/ulid/javascript) [![codecov](https://codecov.io/gh/ulid/javascript/branch/master/graph/badge.svg)](https://codecov.io/gh/ulid/javascript)\n[![npm](https://img.shields.io/npm/dm/localeval.svg)](https://www.npmjs.com/package/ulid)\n\n# Universally Unique Lexicographically Sortable Identifier\n\nUUID can be suboptimal for many uses-cases because:\n\n- It isn't the most character efficient way of encoding 128 bits of randomness\n- UUID v1/v2 is impractical in many environments, as it requires access to a unique, stable MAC address\n- UUID v3/v5 requires a unique seed and produces randomly distributed IDs, which can cause fragmentation in many data structures\n- UUID v4 provides no other information than randomness which can cause fragmentation in many data structures\n\nInstead, herein is proposed ULID:\n\n- 128-bit compatibility with UUID\n- 1.21e+24 unique ULIDs per millisecond\n- Lexicographically sortable!\n- Canonically encoded as a 26 character string, as opposed to the 36 character UUID\n- Uses Crockford's base32 for better efficiency and readability (5 bits per character)\n- Case insensitive\n- No special characters (URL safe)\n- Monotonic sort order (correctly detects and handles the same millisecond)\n\n## Installation\n\n```\nnpm install --save ulid\n```\n\n## Import\n\n**TypeScript, ES6+, Babel, Webpack, Rollup, etc.. environments**\n```javascript\nimport { ulid } from 'ulid'\n\nulid() // 01ARZ3NDEKTSV4RRFFQ69G5FAV\n```\n\n**CommonJS environments**\n```javascript\nconst ULID = require('ulid')\n\nULID.ulid()\n```\n\n**AMD (RequireJS) environments**\n```javascript\ndefine(['ULID'] , function (ULID) {\n  ULID.ulid()\n});\n```\n\n**Browser**\n```html\n<script src=\"/path/to/ulid.js\"></script>\n<script>\n    ULID.ulid()\n</script>\n```\n\n## Usage\n\nTo generate a ULID, simply run the function!\n\n```javascript\nimport { ulid } from 'ulid'\n\nulid() // 01ARZ3NDEKTSV4RRFFQ69G5FAV\n```\n\n### Seed Time\n\nYou can also input a seed time which will consistently give you the same string for the time component. This is useful for migrating to ulid.\n\n```javascript\nulid(1469918176385) // 01ARYZ6S41TSV4RRFFQ69G5FAV\n```\n\n### Monotonic ULIDs\n\nTo generate monotonically increasing ULIDs, create a monotonic counter.\n\n*Note that the same seed time is being passed in for this example to demonstrate its behaviour when generating multiple ULIDs within the same millisecond*\n\n```javascript\nimport { monotonicFactory } from 'ulid'\n\nconst ulid = monotonicFactory()\n\n// Strict ordering for the same timestamp, by incrementing the least-significant random bit by 1\nulid(150000) // 000XAL6S41ACTAV9WEVGEMMVR8\nulid(150000) // 000XAL6S41ACTAV9WEVGEMMVR9\nulid(150000) // 000XAL6S41ACTAV9WEVGEMMVRA\nulid(150000) // 000XAL6S41ACTAV9WEVGEMMVRB\nulid(150000) // 000XAL6S41ACTAV9WEVGEMMVRC\n\n// Even if a lower timestamp is passed (or generated), it will preserve sort order\nulid(100000) // 000XAL6S41ACTAV9WEVGEMMVRD\n```\n\n### Pseudo-Random Number Generators\n\n`ulid` automatically detects a suitable (cryptographically-secure) PRNG. In the browser it will use `crypto.getRandomValues` and on node it will use `crypto.randomBytes`.\n\n#### Allowing the insecure `Math.random`\n\nBy default, `ulid` will not use `Math.random`, because that is insecure. To allow the use of `Math.random`, you'll have to use `factory` and `detectPrng`.\n\n```javascript\nimport { factory, detectPrng } from 'ulid'\n\nconst prng = detectPrng(true) // pass `true` to allow insecure\nconst ulid = factory(prng)\n\nulid() // 01BXAVRG61YJ5YSBRM51702F6M\n```\n\n#### Use your own PRNG\n\nTo use your own pseudo-random number generator, import the factory, and pass it your generator function.\n\n```javascript\nimport { factory } from 'ulid'\nimport prng from 'somewhere'\n\nconst ulid = factory(prng)\n\nulid() // 01BXAVRG61YJ5YSBRM51702F6M\n```\n\nYou can also pass in a `prng` to the `monotonicFactory` function.\n\n```javascript\nimport { monotonicFactory } from 'ulid'\nimport prng from 'somewhere'\n\nconst ulid = monotonicFactory(prng)\n\nulid() // 01BXAVRG61YJ5YSBRM51702F6M\n```\n\n## Implementations in other languages\n\nRefer to [ulid/spec](https://github.com/ulid/spec)\n\n## Specification\n\nRefer to [ulid/spec](https://github.com/ulid/spec)\n\n## Test Suite\n\n```\nnpm test\n```\n\n## Performance\n\n```\nnpm run perf\n```\n\n```\nulid\n336,331,131 op/s » encodeTime\n102,041,736 op/s » encodeRandom\n17,408 op/s » generate\n\n\nSuites:  1\nBenches: 3\nElapsed: 7,285.75 ms\n```\n","_attachments":{},"homepage":"https://github.com/ulid/javascript#readme","bugs":{"url":"https://github.com/ulid/javascript/issues"},"license":"MIT"}