levelup-defaults
Change the defaults settings on a levelup instance by returning a new levelup instance that uses the same leveldown but different options.
npm install levelup-defaults
Usage
var defaults =var level =var db =// create a new levelup that uses binary encoding as defaultvar binaryDb =// create a new levelup that uses bytewise and jsonvar anotherDb =
The original db
is not mutated so any encoding settings on that are left unchanged.
License
MIT