{"_id":"7id","_rev":"7-098e4bbd3c2816efda10547288118867","name":"7id","dist-tags":{"latest":"1.0.0"},"versions":{"0.9.0":{"name":"7id","version":"0.9.0","description":"Random base32 string generator for unique ID usage.","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/tecnospeed/7ID.git"},"keywords":["random","base32","string","generator","unique","id"],"author":{"name":"Rafael Gumieri"},"license":"MIT","bugs":{"url":"https://github.com/tecnospeed/7ID/issues"},"homepage":"https://github.com/tecnospeed/7ID#readme","devDependencies":{"jest":"^22.2.2","prettier-standard":"^8.0.0"},"gitHead":"06f8114fc669ddcd964afe3de47cb738b0f240f6","_id":"7id@0.9.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"tecnospeed","email":"rafael.gumieri@tecnospeed.com.br"},"dist":{"integrity":"sha512-vE4x0G1Sa7e+8UkqtYdt1tHZZ1w3PdS2FJfSAwq1fuH7BLi3IQVh1XvCfeCcqFJTLKGLbUVLI6WUyk94QyBADQ==","shasum":"f5124ad1ed641c028d5716d01ae9c83662d93a46","tarball":"https://registry.npmjs.org/7id/-/7id-0.9.0.tgz","fileCount":4,"unpackedSize":5212,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICVJJxuKEuVO0gpoNj5Py7gZaNNQqGnHujpO3l0k9PbXAiEA59Hu/3/mFLaqOXD3048+yqkMeeV+ArGD3vsbApe7dzM="}]},"maintainers":[{"name":"tecnospeed","email":"rafael.gumieri@tecnospeed.com.br"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/7id_0.9.0_1518469626766_0.5073651921436819"},"_hasShrinkwrap":false},"1.0.0":{"name":"7id","version":"1.0.0","description":"Random base32 string generator for unique ID usage.","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/tecnospeed/7ID.git"},"keywords":["random","base32","string","generator","unique","id"],"author":{"name":"Rafael Gumieri"},"license":"MIT","bugs":{"url":"https://github.com/tecnospeed/7ID/issues"},"homepage":"https://github.com/tecnospeed/7ID#readme","gitHead":"32be40e23fe088f5333b59b7c821a72ab134a3ca","_id":"7id@1.0.0","_nodeVersion":"10.16.0","_npmVersion":"6.10.1","dist":{"integrity":"sha512-hJRFrdxZLolqLqrtjyQxPUHvt0mXloM2Sq/03OsxKV2g+vWO9HBL8ql6j5YKYBTR+Vpf5ri2PTFebdBVqbas2Q==","shasum":"392b1d2df1f7a4105ee5fefc676e4fa95b2c3123","tarball":"https://registry.npmjs.org/7id/-/7id-1.0.0.tgz","fileCount":4,"unpackedSize":5883,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkDxzCRA9TVsSAnZWagAAlHkQAIyEvVmHuQdos0c5zVhY\n9vjl1UJcKroYzjlvbHnUAX2a0AH4U1+VrFFsloB9vGYkQvf2FhIhfDN4nE6/\ndNkWYu7o3c4quBT4STEPftrbeoBhOlAM3FIyLRjM7LK4ioKZ6Mhrez2jEhwy\nIyYDBDUmVyLHQTFQrLeRVTccHU27iHAI+tqXuhlRO7NqhffcDtLSHNV4OiuE\niY/2jXk+T1YHPuSctxdJKQd+fQIr8wQtYfTUECueGzLsXGEywWs2xaghc5+n\nFc9n5oYhGK0s66Lcf2PRugESt8oBuQuVzJDA1Rz9OIu9bZkh9rB3pvOf2jmr\nKfl8T8H1fEEMB7sgJsiccjGDFefOWI9WkbPYqAxcvXfX7cighC/6NguhjXEh\nMntV0vNb9DTixgYRtVja8g01meKe/5p5/cyrEybXH3j+E91r6mzKzFV67THd\nCeUr67xD/fry1BhcJQ8D7SnO9W3S+krU7CWYkdRWQVumK7NnKl1xGLGx4uac\nkhRyNMx6yoU05tm3NnM/uESvvpfaJmCVgrKg7hPgkDx/83MSHg9JKSGAtGmn\nH5gCHfGlNV4Wp/RINz7l+dh23rrPFL+Sr9UrwYzzjVJlwN35bC+m7cLq0hou\nD6YXB4PTcFE2tmiIupfMjwZkptJFesBueVCLyTixE7Jj+dAFAYU7AdStklIp\njcz+\r\n=3vn9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWDB71vNO0gTdBzTaWSF2myQTtGSAcTDFeOQBMNFO16gIhAO8gUuTVqWJXP2FFBx2dJfzmy9GuD5EVk8EQkXdBn9NT"}]},"maintainers":[{"email":"bh-cavalcantii@hotmail.com","name":"brunocavalcanti"},{"email":"rgumieri@gmail.com","name":"gumieri"},{"email":"eptaccio@gmail.com","name":"marcosflorencio"},{"email":"rafael.gumieri@tecnospeed.com.br","name":"tecnspeed"}],"_npmUser":{"name":"gumieri","email":"rgumieri@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/7id_1.0.0_1569733746504_0.3937102888388535"},"_hasShrinkwrap":false}},"time":{"created":"2018-02-12T21:07:06.766Z","0.9.0":"2018-02-12T21:07:06.828Z","modified":"2022-04-04T10:24:18.835Z","1.0.0":"2019-09-29T05:09:06.647Z"},"maintainers":[{"email":"bh-cavalcantii@hotmail.com","name":"brunocavalcanti"},{"email":"rgumieri@gmail.com","name":"gumieri"},{"email":"eptaccio@gmail.com","name":"marcosflorencio"},{"email":"rafael.gumieri@tecnospeed.com.br","name":"tecnspeed"}],"description":"Random base32 string generator for unique ID usage.","homepage":"https://github.com/tecnospeed/7ID#readme","keywords":["random","base32","string","generator","unique","id"],"repository":{"type":"git","url":"git+https://github.com/tecnospeed/7ID.git"},"author":{"name":"Rafael Gumieri"},"bugs":{"url":"https://github.com/tecnospeed/7ID/issues"},"license":"MIT","readme":"# 7ID\n\nRandom base32 ([RFC 4648](https://tools.ietf.org/html/rfc4648) without _padding_) string generator for unique ID usage.\n\nThis library includes the function `generate()`,\nwhich accepts a number of bytes to be used by `crypto` on it's function `randomBytes()`.\n\nThe proportion of characters generated and the length of bytes requested is 5/16 (0.3125).\nEach 5 bytes, 16 characters are generated. 10 bytes output is a string of 32 characters.\n\n## Collision probability\n\nThe [probability](https://en.wikipedia.org/wiki/Birthday_problem#Probability_table) depends on the bytes length informed.\n\nOn a practical test of collision, the genetions that colided was:\n\n|Generations|\n|--------|\n|16690357|\n|20813326|\n|30091557|\n|30288983|\n|40839999|\n|43867276|\n|44935582|\n|(…)|\n\n## Usage\n\n## Example\n```javascript\nconst thitySixID = require('7id')\n\nlet result = thitySixID.generate(6)\n\nconsole.log(result)\n```\n\n### Output example\n```javascript\n'G42WCY3CMVSTOOLGGIYQ'\n```\n","readmeFilename":"README.md"}