{"_id":"shorthash","_rev":"11-b231c8b4e15a2d3bf874e21c9a5c435c","name":"shorthash","description":"Node.js module to get a short unique hash of a string","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"author":{"name":"Bibig","email":"bibig@me.com","url":"https://twitter.com/bibig"},"name":"shorthash","version":"0.0.1","description":"Node.js module to get a short unique hash of a string","preferGlobal":"true","main":"index.js","keywords":["hash","shorthash"],"repository":{"type":"git","url":"https://github.com/bibig/node-shorthash.git"},"license":"MIT","readmeFilename":"README.md","dependencies":{},"engines":{"node":"*"},"readme":"node-shorthash\n==============\n\nget an unique short hash of a string","_id":"shorthash@0.0.1","dist":{"shasum":"e4023c419a7c3359f766c6a27588cd1044caf212","tarball":"https://registry.npmjs.org/shorthash/-/shorthash-0.0.1.tgz","integrity":"sha512-mVXDD6ENTgP7dLlAB7t+9f3KkaR68INQNo0mjy+77GQ/mtFedkP9gf5miPwRTWHb+S8GAnKni8wHqzu+vkvvNQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH5G1tZxTepKnx/ZmeZqtafmwNuZOi4Zs0oUxFq8XHJXAiEAkFWhGB5YIhofoZeHU/cCXSd0LnByMyoExzfVBiOZl0o="}]},"_npmVersion":"1.1.66","_npmUser":{"name":"bibig","email":"bibig@me.com"},"maintainers":[{"name":"bibig","email":"bibig@me.com"}]},"0.0.2":{"author":{"name":"Bibig","email":"bibig@me.com","url":"https://twitter.com/bibig"},"name":"shorthash","version":"0.0.2","description":"Node.js module to get a short unique hash of a string","preferGlobal":"true","main":"index.js","keywords":["hash","shorthash"],"repository":{"type":"git","url":"https://github.com/bibig/node-shorthash.git"},"license":"MIT","readmeFilename":"README.md","dependencies":{},"engines":{"node":"*"},"readme":"# shorthash\n\n+ A mini Node.js module to generate short, alpha-number, undecryptable and unique hash id from a long string (utf8 format).\n+ Use shorthash when you want to encrypt a string like a movie name or a people name to a short, unique and url friendly id.\n+ so with shorthash, you can build an id-string map, instead of quering the id from db each time, you just calculate the id out on the fly. \n+ it's quite convenient in many conditions if you want to build a site like [书本画](http://shubenhua.com), a book search engine in China.\n\n\n## Usage\n\n#### less's more, no options, just unique the string. \n\n```javascript\nvar sh = require(\"shorthash\");\n\nconsole.log(sh.unique('foobar@example.com'));\n// you will get: Z1bL2tE\n\nconsole.log(sh.unique('my name is really big big and big...'));\n// you will get: Z1TirWS\n\nconsole.log(sh.unique('万里长城永不倒。。。'));\n// you will get: 2r6EFF\n\nconsole.log(sh.unique('和平'));\n// you will get: 33NM\n\n```","_id":"shorthash@0.0.2","dist":{"shasum":"59b268eecbde59038b30da202bcfbddeb2c4a4eb","tarball":"https://registry.npmjs.org/shorthash/-/shorthash-0.0.2.tgz","integrity":"sha512-L/QRElsfTaCCzA7AJPXuin6/jgWjgmTfjdaXucQ5PauPypmqAZ7t4GueaCv+Jti0M8S2Iv1C/ryD+aWY/KUGCA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLGq4RDNGKjIDJMO398gMXiPWLEpJlSmrUNlLgNKPeMgIgKmFN2LHtxWc4vP5VA8vfcjBHoc018zWM4pR1+2YYT7M="}]},"_npmVersion":"1.1.66","_npmUser":{"name":"bibig","email":"bibig@me.com"},"maintainers":[{"name":"bibig","email":"bibig@me.com"}]}},"readme":"node-shorthash\n==============\n\nget an unique short hash of a string","maintainers":[{"name":"bibig","email":"bibig@me.com"}],"time":{"modified":"2022-06-26T19:04:30.039Z","created":"2013-04-19T06:49:57.039Z","0.0.1":"2013-04-19T06:50:01.316Z","0.0.2":"2013-04-19T08:02:32.072Z"},"author":{"name":"Bibig","email":"bibig@me.com","url":"https://twitter.com/bibig"},"repository":{"type":"git","url":"https://github.com/bibig/node-shorthash.git"},"users":{"menoncello":true,"rkopylkov":true,"cslasher":true,"pedromsilva":true}}