{"name":"level-peek","description":"peek the first or last record in a leveldb range.","version":"1.0.0","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.0","dist":{"shasum":"5b4b1150a7272d7d37473a8ca7001114226bfd86","tarball":"http://registry-npm.ywwl.com/level-peek/download/level-peek-1.0.0.tgz","integrity":"sha512-qg+cQVbn+e+r1LgicN96YMittrtsJj/OAyk2AjUC2gw+OL78erW+z2yr8jBRfYqLN4maYIDGDfsXwPFvZtK9IQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/i4dXdq7SBuRXpZlWDptniu7076BLLwWWj1ePN6doBQIgdksxvxQlU/DvX153IniCm3TmW1I5AtGpTk5s7BRSixU="}],"size":2336,"noattachment":false,"key":"/level-peek/-/level-peek-1.0.0.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":1364308847793,"_cnpm_publish_time":1364308847793,"dist-tags":{"latest":"2.0.2"}}