{"name":"level-peek","description":"peek the first or last record in a leveldb range.","version":"2.0.0","homepage":"https://github.com/dominictarr/level-peek","repository":{"type":"git","url":"git://github.com/dominictarr/level-peek.git"},"dependencies":{"pull-level":"~1.1.11","pull-stream":"~2.24.0"},"devDependencies":{"level-test":"~1.6.3","tape":"~2.14.0","level-sublevel":"~6.3.0"},"scripts":{"test":"set -e; for t in test/*.js; do node $t; done"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"http://dominictarr.com"},"license":"MIT","bugs":{"url":"https://github.com/dominictarr/level-peek/issues"},"_id":"level-peek@2.0.0","_shasum":"7dc0472c126e30b985f1e78b82f1d16fd0161400","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"dist":{"shasum":"7dc0472c126e30b985f1e78b82f1d16fd0161400","tarball":"http://registry-npm.ywwl.com/level-peek/download/level-peek-2.0.0.tgz","integrity":"sha512-A2v7Fr+Bl1s57sghEoeIe0sWt4YFbMogZi1tsS5bv4RyL7BGiI9uQ6W5qCDVLtUSRvkPFr3BNkys4yneC0W/uQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBxpYjgjpaCjHvHMjXs2m1x6AUPFiAGIbTXBsy67S30PAiEA8myLV0P/LIvS/EknR+UxPjTyjuq4jASYatB+yhX1/SU="}],"size":2313,"noattachment":false,"key":"/level-peek/-/level-peek-2.0.0.tgz"},"directories":{},"readme":"# level-peek\n\npeek the first or last record in a leveldb range.\n\n## example\n\n``` js\nvar levelup = require('levelup')\nvar db = levelup(PATH_TO_DB)\n\nvar peek = require('level-peek')\n\n//get the first value, 'a' or after\npeek.first(db, {start: 'a'}, function (err, key, value) {\n  console.log(key, value)\n})\n\n//get last value, 'z' or before.\npeek.last(db, {end: 'z'}, function (err, key, value) {\n  console.log(key, value)\n})\n```\n\n\nsee also, [level-fix-range](https://github.com/dominictarr/level-fix-range)\nand https://github.com/rvagg/node-levelup/issues/110\n\n## License\n\nMIT\n","publish_time":1408234081648,"_cnpm_publish_time":1408234081648,"dist-tags":{"latest":"2.0.2"}}