key-range
return whether a string key is within a levelup-style range
example
var range = ;console;console;console;console;
output:
true
false
true
true
methods
var range =
range(key, opts)
Return a boolean: whether the string key
matches the range constraints given
by opts
.
opts
may include any one of:
opts.start
opts.end
opts.lt
opts.lte
opts.gt
opts.gte
opts.min
opts.max
These correspond to the range options supported by
levelup, although {lt,gt}{,e}
is
the preferred form.
install
With npm do:
npm install key-range
license
MIT