{"_id":"time-uuid","_rev":"78479","name":"time-uuid","description":"Universally unique identifier in short web friendly (non UUID) format","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"medikoo","email":""}],"time":{"modified":"2021-06-03T10:25:10.000Z","created":"2012-12-27T18:15:38.050Z","1.0.0":"2015-06-24T06:52:25.387Z","0.2.1":"2014-05-08T13:52:44.241Z","0.2.0":"2014-04-28T18:21:54.890Z","0.1.0":"2012-12-27T18:15:38.050Z"},"users":{"drmercer":true},"author":{"name":"Mariusz Nowak","email":"medikoo@medikoo.com","url":"http://www.medikoo.com/"},"repository":{"type":"git","url":"git+ssh://git@github.com/medikoo/time-uuid.git"},"versions":{"1.0.0":{"name":"time-uuid","version":"1.0.0","description":"Universally unique identifier in short web friendly (non UUID) format","author":{"name":"Mariusz Nowak","email":"medikoo@medikoo.com","url":"http://www.medikoo.com/"},"keywords":["uuid","guid","id","uniq","unique","stamp","timestamp"],"repository":{"type":"git","url":"git+ssh://git@github.com/medikoo/time-uuid.git"},"dependencies":{"microtime-x":"1"},"devDependencies":{"tad":"^0.2.2","xlint":"^0.2.2","xlint-jslint-medikoo":"^0.1.2"},"scripts":{"lint":"node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --no-cache --no-stream","lint-console":"node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --watch","test":"node node_modules/tad/bin/tad"},"license":"MIT","gitHead":"848f9064835d435470291f7e248effd40f7f378d","bugs":{"url":"https://github.com/medikoo/time-uuid/issues"},"homepage":"https://github.com/medikoo/time-uuid#readme","_id":"time-uuid@1.0.0","_shasum":"11da0755a5a3131454bf367bbe4840da2c6effdf","_from":".","_npmVersion":"2.11.3","_nodeVersion":"2.3.1","_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"dist":{"shasum":"11da0755a5a3131454bf367bbe4840da2c6effdf","size":3510,"noattachment":false,"key":"/time-uuid/-/time-uuid-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/time-uuid/download/time-uuid-1.0.0.tgz"},"maintainers":[{"name":"medikoo","email":""}],"directories":{},"publish_time":1435128745387,"_cnpm_publish_time":1435128745387,"_hasShrinkwrap":false},"0.2.1":{"name":"time-uuid","version":"0.2.1","description":"Universally unique identifier in short web friendly (non UUID) format","author":{"name":"Mariusz Nowak","email":"medikoo@medikoo.com","url":"http://www.medikoo.com/"},"keywords":["uuid","guid","id","uniq","unique","stamp","timestamp"],"repository":{"type":"git","url":"git@github.com:medikoo/time-uuid.git"},"dependencies":{"microtime-x":"~0.2.1"},"devDependencies":{"tad":"0.2.x"},"scripts":{"test":"node node_modules/tad/bin/tad"},"license":"MIT","bugs":{"url":"https://github.com/medikoo/time-uuid/issues"},"homepage":"https://github.com/medikoo/time-uuid","_id":"time-uuid@0.2.1","_shasum":"69f931696543c956ac4be276a5da1b4a28ccb97e","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"maintainers":[{"name":"medikoo","email":""}],"dist":{"shasum":"69f931696543c956ac4be276a5da1b4a28ccb97e","size":3301,"noattachment":false,"key":"/time-uuid/-/time-uuid-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/time-uuid/download/time-uuid-0.2.1.tgz"},"directories":{},"publish_time":1399557164241,"_cnpm_publish_time":1399557164241,"_hasShrinkwrap":false},"0.2.0":{"name":"time-uuid","version":"0.2.0","description":"Universally unique identifier in short web friendly (non UUID) format","author":{"name":"Mariusz Nowak","email":"medikoo@medikoo.com","url":"http://www.medikoo.com/"},"keywords":["uuid","guid","id","uniq","unique","stamp","timestamp"],"repository":{"type":"git","url":"git@github.com:medikoo/time-uuid.git"},"dependencies":{"microtime-x":"0.2.x"},"devDependencies":{"tad":"0.2.x"},"scripts":{"test":"node node_modules/tad/bin/tad"},"license":"MIT","bugs":{"url":"https://github.com/medikoo/time-uuid/issues"},"homepage":"https://github.com/medikoo/time-uuid","_id":"time-uuid@0.2.0","dist":{"shasum":"c787bc244178a93495368204db0c5c9ba354c842","size":3258,"noattachment":false,"key":"/time-uuid/-/time-uuid-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/time-uuid/download/time-uuid-0.2.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"maintainers":[{"name":"medikoo","email":""}],"directories":{},"publish_time":1398709314890,"_cnpm_publish_time":1398709314890,"_hasShrinkwrap":false},"0.1.0":{"name":"time-uuid","version":"0.1.0","author":{"name":"Mariusz Nowak","email":"medikoo+time-uuid@medikoo.com","url":"http://www.medikoo.com/"},"description":"Universally unique identifier based on current time and in short not standard UUID format","main":"lib/uuid","scripts":{"test":"node node_modules/tad/bin/tad lib"},"keywords":["uuid","guid","id","uniq","unique","stamp","timestamp"],"dependencies":{"microtime-x":"0.1.x"},"devDependencies":{"tad":"0.1.x"},"repository":{"type":"git","url":"git@github.com:medikoo/time-uuid.git"},"license":"MIT","readmeFilename":"README.md","_id":"time-uuid@0.1.0","dist":{"shasum":"a9eb77e160179c1ba95cea226faccc0d75a6f9e8","size":2855,"noattachment":false,"key":"/time-uuid/-/time-uuid-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/time-uuid/download/time-uuid-0.1.0.tgz"},"_npmVersion":"1.1.69","_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"maintainers":[{"name":"medikoo","email":""}],"directories":{},"publish_time":1356632138050,"_cnpm_publish_time":1356632138050,"_hasShrinkwrap":false}},"readme":"# time-uuid\n## Universally unique identifier in short web-friendly format.\n\nGenerated id's are composed out of current microseconds stamp, and random string.\n\n### Usage\n\nGenerate id based on current time and random string:\n\n```javascript\nvar generateId = require('time-uuid');\nconsole.log(generateId()); // 7e7b249ksny\nconsole.log(generateId()); // 7e7b249wyjy\nconsole.log(generateId()); // 7e7b24ahlgy\n```\n\nGet unique time (in microseconds): \n \n_It doesn't guarantee accurate time representation, in first place it's about provision of *unique* microtime value and optionally it relies on some microtime provider which may not be available in current environement_\n```javascript\nvar getTime = require('time-uuid/time');\nconsole.log(getTime()); // 1356631360599486\nconsole.log(getTime()); // 1356631360599698\nconsole.log(getTime()); // 1356631360603625\n```\n\nGet unique id out of given microtime value\n```javascript\nvar getIdByTime = require('time-uuid/get-by-time');\nconsole.log(getIdByTime(getTime())); // 7e7b24alj5y\nconsole.log(getIdByTime(getTime())); // 7e7b24aljyy\nconsole.log(getIdByTime(getTime())); // 7e7b24alkhy\n```\n\n### Installation\n\n\t$ npm install time-uuid\n\t\nTo port it to Browser or any other (non CJS) environment, use your favorite CJS bundler. No favorite yet? Try: [Browserify](http://browserify.org/), [Webmake](https://github.com/medikoo/modules-webmake) or [Webpack](http://webpack.github.io/)\n\n## Tests [![Build Status](https://travis-ci.org/medikoo/time-uuid.png)](https://travis-ci.org/medikoo/time-uuid)\n\n\t$ npm test\n","_attachments":{},"homepage":"https://github.com/medikoo/time-uuid#readme","bugs":{"url":"https://github.com/medikoo/time-uuid/issues"},"license":"MIT"}