{"_id":"uid-safe","_rev":"18-70f36eb634d5f79e686d029f99fd75eb","name":"uid-safe","description":"URL and cookie safe UIDs","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"uid-safe","description":"URL and cookie safe UIDs","version":"1.0.0","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"git://github.com/jonathanong/uid-safe"},"dependencies":{"mz":"0","bluebird":"2","base64-url":"1"},"devDependencies":{"mocha":"1"},"scripts":{"test":"mocha --reporter spec --bail"},"bugs":{"url":"https://github.com/jonathanong/uid-safe/issues"},"homepage":"https://github.com/jonathanong/uid-safe","_id":"uid-safe@1.0.0","_shasum":"1c324910575017933ffe04db5812e230ad47d59a","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"dist":{"shasum":"1c324910575017933ffe04db5812e230ad47d59a","tarball":"http://registry.npmjs.org/uid-safe/-/uid-safe-1.0.0.tgz"},"directories":{}},"1.0.1":{"name":"uid-safe","description":"URL and cookie safe UIDs","version":"1.0.1","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"git://github.com/crypto-utils/uid-safe"},"dependencies":{"mz":"1","base64-url":"1"},"devDependencies":{"bluebird":"2","mocha":"1"},"scripts":{"test":"mocha --reporter spec --bail"},"bugs":{"url":"https://github.com/crypto-utils/uid-safe/issues"},"homepage":"https://github.com/crypto-utils/uid-safe","_id":"uid-safe@1.0.1","_shasum":"5bd148460a2e84f54f193fd20352c8c3d7de6ac8","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"}],"dist":{"shasum":"5bd148460a2e84f54f193fd20352c8c3d7de6ac8","tarball":"http://registry.npmjs.org/uid-safe/-/uid-safe-1.0.1.tgz"},"directories":{}},"1.0.2":{"name":"uid-safe","description":"URL and cookie safe UIDs","version":"1.0.2","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/crypto-utils/uid-safe"},"dependencies":{"base64-url":"1.1.0","native-or-bluebird":"~1.1.2"},"devDependencies":{"bluebird":"2","istanbul":"0","mocha":"~2.1.0"},"files":["LICENSE","HISTORY.md","README.md","index.js"],"engines":{"node":">= 0.8"},"scripts":{"test":"mocha --trace-deprecation --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --trace-deprecation --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --trace-deprecation --reporter spec --check-leaks test/"},"keywords":["random","generator","uid","safe"],"gitHead":"c06813fa0ed50d0b06b54879602899cfe95a9753","bugs":{"url":"https://github.com/crypto-utils/uid-safe/issues"},"homepage":"https://github.com/crypto-utils/uid-safe","_id":"uid-safe@1.0.2","_shasum":"bcd1738b653fabe1288d88afd8cd0ae0af5a1580","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"}],"dist":{"shasum":"bcd1738b653fabe1288d88afd8cd0ae0af5a1580","tarball":"http://registry.npmjs.org/uid-safe/-/uid-safe-1.0.2.tgz"},"directories":{}},"1.0.3":{"name":"uid-safe","description":"URL and cookie safe UIDs","version":"1.0.3","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"}],"license":"MIT","repository":{"type":"git","url":"https://github.com/crypto-utils/uid-safe"},"dependencies":{"base64-url":"1.2.0","native-or-bluebird":"~1.1.2"},"devDependencies":{"bluebird":"2","istanbul":"0","mocha":"~2.1.0"},"files":["LICENSE","HISTORY.md","README.md","index.js"],"engines":{"node":">= 0.8"},"scripts":{"test":"mocha --trace-deprecation --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --trace-deprecation --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --trace-deprecation --reporter spec --check-leaks test/"},"keywords":["random","generator","uid","safe"],"gitHead":"efd93763195a97d6127b7a7a5338e3a1c8706457","bugs":{"url":"https://github.com/crypto-utils/uid-safe/issues"},"homepage":"https://github.com/crypto-utils/uid-safe","_id":"uid-safe@1.0.3","_shasum":"290afe3ec6d0d28c41b0768e8de72af22515d1c7","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"}],"dist":{"shasum":"290afe3ec6d0d28c41b0768e8de72af22515d1c7","tarball":"http://registry.npmjs.org/uid-safe/-/uid-safe-1.0.3.tgz"},"directories":{}},"1.1.0":{"name":"uid-safe","description":"URL and cookie safe UIDs","version":"1.1.0","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"}],"license":"MIT","repository":{"type":"git","url":"https://github.com/crypto-utils/uid-safe"},"dependencies":{"base64-url":"1.2.1","native-or-bluebird":"~1.1.2"},"devDependencies":{"bluebird":"2","istanbul":"0.3.5","mocha":"~2.1.0","proxyquire":"~1.2.0"},"files":["LICENSE","HISTORY.md","README.md","index.js"],"engines":{"node":">= 0.8"},"scripts":{"test":"mocha --trace-deprecation --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --trace-deprecation --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --trace-deprecation --reporter spec --check-leaks test/"},"keywords":["random","generator","uid","safe"],"gitHead":"f41bf54dbc69a10e6194958d21266a328ad4f30d","bugs":{"url":"https://github.com/crypto-utils/uid-safe/issues"},"homepage":"https://github.com/crypto-utils/uid-safe","_id":"uid-safe@1.1.0","_shasum":"58d6c5dabf8dfbd8d52834839806c03fd6143232","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"}],"dist":{"shasum":"58d6c5dabf8dfbd8d52834839806c03fd6143232","tarball":"http://registry.npmjs.org/uid-safe/-/uid-safe-1.1.0.tgz"},"directories":{}},"2.0.0":{"name":"uid-safe","description":"URL and cookie safe UIDs","version":"2.0.0","contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"}],"license":"MIT","repository":{"type":"git","url":"https://github.com/crypto-utils/uid-safe"},"dependencies":{"base64-url":"1.2.1"},"devDependencies":{"bluebird":"2.9.25","istanbul":"0.3.9","mocha":"~2.2.4","proxyquire":"~1.2.0"},"files":["LICENSE","HISTORY.md","README.md","index.js"],"engines":{"node":">= 0.8"},"scripts":{"test":"mocha --trace-deprecation --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --trace-deprecation --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --trace-deprecation --reporter spec --check-leaks test/"},"keywords":["random","generator","uid","safe"],"gitHead":"bf6e105748aec52992efc6da50964378984f49e9","bugs":{"url":"https://github.com/crypto-utils/uid-safe/issues"},"homepage":"https://github.com/crypto-utils/uid-safe","_id":"uid-safe@2.0.0","_shasum":"a7f3c6ca64a1f6a5d04ec0ef3e4c3d5367317137","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"}],"dist":{"shasum":"a7f3c6ca64a1f6a5d04ec0ef3e4c3d5367317137","tarball":"http://registry.npmjs.org/uid-safe/-/uid-safe-2.0.0.tgz"},"directories":{}}},"readme":"# uid-safe\n\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![Node.js Version][node-version-image]][node-version-url]\n[![Build Status][travis-image]][travis-url]\n[![Test Coverage][coveralls-image]][coveralls-url]\n\nURL and cookie safe UIDs\n\nCreate cryptographically secure UIDs safe for both cookie and URL usage.\nThis is in contrast to modules such as [rand-token](https://www.npmjs.com/package/rand-token)\nand [uid2](https://www.npmjs.com/package/uid2) whose UIDs are actually skewed\ndue to the use of `%` and unnecessarily truncate the UID.\nUse this if you could still use UIDs with `-` and `_` in them.\n\n## Installation\n\n```sh\n$ npm install uid-safe\n```\n\n## API\n\n```js\nvar uid = require('uid-safe')\n```\n\n### uid(byteLength, callback)\n\nAsynchronously create a UID with a specific byte length. Because `base64`\nencoding is used underneath, this is not the string length. For example,\nto create a UID of length 24, you want a byte length of 18.\n\n```js\nuid(18, function (err, string) {\n if (err) throw err\n // do something with the string\n})\n```\n\n### uid(byteLength)\n\nAsynchronously create a UID with a specific byte length and return a\n`Promise`.\n\n**To use promises, you must define a global `Promise` if necessary.**\n\n```js\nuid(18).then(function (string) {\n // do something with the string\n})\n```\n\n### uid.sync(byteLength)\n\nA synchronous version of above.\n\n```js\nvar string = uid.sync(18)\n```\n\n## License\n\n[MIT](LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/uid-safe.svg\n[npm-url]: https://npmjs.org/package/uid-safe\n[node-version-image]: https://img.shields.io/node/v/uid-safe.svg\n[node-version-url]: http://nodejs.org/download/\n[travis-image]: https://img.shields.io/travis/crypto-utils/uid-safe/master.svg\n[travis-url]: https://travis-ci.org/crypto-utils/uid-safe\n[coveralls-image]: https://img.shields.io/coveralls/crypto-utils/uid-safe/master.svg\n[coveralls-url]: https://coveralls.io/r/crypto-utils/uid-safe?branch=master\n[downloads-image]: https://img.shields.io/npm/dm/uid-safe.svg\n[downloads-url]: https://npmjs.org/package/uid-safe\n","maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"}],"time":{"modified":"2015-05-08T15:05:44.168Z","created":"2014-06-18T09:01:01.664Z","1.0.0":"2014-06-18T09:01:01.664Z","1.0.1":"2014-06-18T23:41:22.421Z","1.0.2":"2015-01-08T23:59:34.316Z","1.0.3":"2015-02-01T02:57:00.432Z","1.1.0":"2015-02-14T05:59:09.027Z","2.0.0":"2015-05-08T15:05:44.168Z"},"homepage":"https://github.com/crypto-utils/uid-safe","repository":{"type":"git","url":"https://github.com/crypto-utils/uid-safe"},"bugs":{"url":"https://github.com/crypto-utils/uid-safe/issues"},"license":"MIT","readmeFilename":"README.md","keywords":["random","generator","uid","safe"],"contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"}],"users":{"richfoxton":true,"raiscui":true,"qqqppp9998":true,"snowdream":true,"nelix":true},"_attachments":{},"_etag":"\"5TCMIVDXDNV62EK2L7SB902ZR\""}