{"name":"level-enumerate","version":"1.0.0","description":"Enumerate keys to incrementing numbers","main":"index.js","dependencies":{"mutexify":"^1.0.1"},"devDependencies":{"memdb":"^0.2.0","standard":"^2.4.4","tape":"^3.5.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/level-enumerate.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/level-enumerate/issues"},"homepage":"https://github.com/mafintosh/level-enumerate","gitHead":"fb0bf49cef173f8ec7fea618ed6c4845558ef2ed","_id":"level-enumerate@1.0.0","_shasum":"863181d5b5e1661e88c366aea0f60aa3795765ad","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.36","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"dist":{"shasum":"863181d5b5e1661e88c366aea0f60aa3795765ad","tarball":"http://registry-npm.ywwl.com/level-enumerate/download/level-enumerate-1.0.0.tgz","integrity":"sha512-IhXutza599a36+bSjo0RdmehXMus6aTaCnJ3Z2BD5Gy7CpxQy84wPkUiHcAs5wMxKaoKCqlWD0viA1jWgQFDLA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdrSDeunDTvAh2Y1bnMcCUFNNNHDJ7/roikz75hcj8SgIgTZItS1rLUIEYS2iBUNHxemhOzaWks+hD1WedrosbBkU="}],"size":2538,"noattachment":false,"key":"/level-enumerate/-/level-enumerate-1.0.0.tgz"},"directories":{},"readme":"# level-enumerate\n\nEnumerate keys to incrementing numbers.\nIf you enumerate the same key twice it will enumerate to the same value.\n\n```\nnpm install level-enumerate\n```\n\n[![build status](http://img.shields.io/travis/mafintosh/level-enumerate.svg?style=flat)](http://travis-ci.org/mafintosh/level-enumerate)\n\n## Usage\n\n``` js\nvar enumerator = require('level-enumerate')\nvar enumerate = enumerator(db) // where db is a levelup\n\nenumerate('hello', function (err, value) {\n  console.log(value) // prints 0\n  enumerate('hello', function (err, value) {\n    console.log(value) // prints 0 again\n    enumerate('world', function (err, value) {\n      console.log(value) // prints 1\n    })\n  })\n})\n```\n\n## API\n\n#### `enumerate = enumerator(db, [options])`\n\nCreate a new enumerator. Options include\n\n``` js\n{\n  sep: '!'    // the separator used when storing the key values\n  prefix: ... // optional string prefix to use when keys when stored\n}\n```\n\n## License\n\nMIT\n","publish_time":1423327058533,"_cnpm_publish_time":1423327058533,"dist-tags":{"latest":"1.0.1"}}