{"_id":"level-enumerate","_rev":"7-0bc0cf83f078257eec6cdacd0101d6b2","name":"level-enumerate","description":"Enumerate keys to incrementing numbers","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"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":"https://registry.npmjs.org/level-enumerate/-/level-enumerate-1.0.0.tgz","integrity":"sha512-IhXutza599a36+bSjo0RdmehXMus6aTaCnJ3Z2BD5Gy7CpxQy84wPkUiHcAs5wMxKaoKCqlWD0viA1jWgQFDLA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdrSDeunDTvAh2Y1bnMcCUFNNNHDJ7/roikz75hcj8SgIgTZItS1rLUIEYS2iBUNHxemhOzaWks+hD1WedrosbBkU="}]}},"1.0.1":{"name":"level-enumerate","version":"1.0.1","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":"cc55520b99a67ac3d6441344945daa684c6aaa34","_id":"level-enumerate@1.0.1","_shasum":"d8fdaff2ef76bd6ed4e49d729dd5d0f1216801bf","_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":"d8fdaff2ef76bd6ed4e49d729dd5d0f1216801bf","tarball":"https://registry.npmjs.org/level-enumerate/-/level-enumerate-1.0.1.tgz","integrity":"sha512-xRdZF79mR5mEErDypfgjnhLZPZpNEBQ9QjnFA6JLxTjZD6sOqK/nexpqM2xLgBUe+F4AhpbZ9yuH4eOwOWkK5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYOidyFIF4cf4hGTPyy5F2SFNUV04goumgb2rOhFlq5QIgRgWbbSG3kG47GrVUZ7jGiFe0tWhDkFc9V340TI76PIE="}]}}},"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","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"time":{"modified":"2022-06-19T11:47:51.312Z","created":"2015-02-07T16:37:38.533Z","1.0.0":"2015-02-07T16:37:38.533Z","1.0.1":"2015-02-07T16:40:59.405Z"},"homepage":"https://github.com/mafintosh/level-enumerate","repository":{"type":"git","url":"https://github.com/mafintosh/level-enumerate.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"bugs":{"url":"https://github.com/mafintosh/level-enumerate/issues"},"license":"MIT","readmeFilename":"README.md","users":{"rocket0191":true}}