npm-kludge-search
Version:
Kludgy fast npm searcher
18 lines (14 loc) • 381 B
JavaScript
;
function complete(db, opts, done) {
var start = opts.complete,
end = start + String.fromCharCode(0x10FFFF),
reporter = opts.reporter;
db.findRange(start, end, function (err, val) {
/*jslint unparam: true*/
reporter.write(val);
}, function () {
done();
});
}
module.exports = complete;
complete.useDb = true;