{"dist":{"shasum":"59b268eecbde59038b30da202bcfbddeb2c4a4eb","tarball":"https://registry.npmjs.org/shorthash/-/shorthash-0.0.2.tgz","integrity":"sha512-L/QRElsfTaCCzA7AJPXuin6/jgWjgmTfjdaXucQ5PauPypmqAZ7t4GueaCv+Jti0M8S2Iv1C/ryD+aWY/KUGCA==","signatures":[{"sig":"MEUCIQDLGq4RDNGKjIDJMO398gMXiPWLEpJlSmrUNlLgNKPeMgIgKmFN2LHtxWc4vP5VA8vfcjBHoc018zWM4pR1+2YYT7M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","name":"shorthash","author":{"url":"https://twitter.com/bibig","name":"Bibig","email":"bibig@me.com"},"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```","engines":{"node":"*"},"license":"MIT","_npmUser":{"name":"bibig","email":"bibig@me.com"},"keywords":["hash","shorthash"],"repository":{"url":"https://github.com/bibig/node-shorthash.git","type":"git"},"_npmVersion":"1.1.66","description":"Node.js module to get a short unique hash of a string","maintainers":[{"name":"bibig","email":"bibig@me.com"}],"dependencies":{},"preferGlobal":"true","readmeFilename":"README.md","_id":"shorthash@0.0.2","version":"0.0.2"}