{"name":"level-peek","description":"peek the first or last record in a leveldb range.","version":"1.0.1","homepage":"https://github.com/dominictarr/level-peek","repository":{"type":"git","url":"git://github.com/dominictarr/level-peek.git"},"dependencies":{"level-fix-range":"~1.0.0"},"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.1","dist":{"shasum":"9f331a681d911bec79e18687d680b0ad4a03872c","tarball":"http://registry-npm.ywwl.com/level-peek/download/level-peek-1.0.1.tgz","integrity":"sha512-vextIPcfr8972jdRRR4dD6yhmyGUYSy8bEbjtXcAafFI4iH/HVkH4gynLeFkjQ1VLhZCgGg5XCRvI8elgrP57Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD77IWOolmuEnuJeTF8p/1pdpy2qYY8o0GLkcK1WcUiuwIgZbtJOGjh6J5aMSeqZEhyDAcpknAQm6hYJjYtRHLifno="}],"size":2225,"noattachment":false,"key":"/level-peek/-/level-peek-1.0.1.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":1364309026063,"_cnpm_publish_time":1364309026063,"dist-tags":{"latest":"2.0.2"}}