{"name":"level-peek","description":"peek the first or last record in a leveldb range.","version":"1.0.5","homepage":"https://github.com/dominictarr/level-peek","repository":{"type":"git","url":"git://github.com/dominictarr/level-peek.git"},"dependencies":{"level-fix-range":"~1.0.2"},"devDependencies":{"levelup":"~0.6.2"},"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","_id":"level-peek@1.0.5","dist":{"shasum":"32c72c7adf65a62198c69898e440baf2013b7ca8","tarball":"http://registry-npm.ywwl.com/level-peek/download/level-peek-1.0.5.tgz","integrity":"sha512-28deDHVTr5F1mZAbdnaP/38g6lMihoCF9elbWsAPMvpjBRhgUnjnGhQo1zlMzqNm8C0htRd9+y+IPZyfL9f0sw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLDoNCLqcbcauVLL2z+i0nhAN9Wn09sN4Ij19XQ5YutAIhAOAQ1fhA16FtVurib5uTryTX1WNJaZa0HDQJbysvcD8D"}],"size":2594,"noattachment":false,"key":"/level-peek/-/level-peek-1.0.5.tgz"},"_from":".","_npmVersion":"1.2.3","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"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":1364319812506,"_cnpm_publish_time":1364319812506,"dist-tags":{"latest":"2.0.2"}}