Extract the options and callback from a function's arguments easily
nodejs client-side argument-parser opts options cb callback next flow args optional arguments extractWith this package you can expose familiar db.createReadStream() options like from leveldb but without leaking information about your internal key representations.For example, suppose you have a list of users using a bytewise keyEncoding and you want to let api consumers constrain the output. If you pass through opts.gt/opts.lt arguments directly, you must communicate to api consumers the internal structure of your keys, which breaks encapsulation.
level database options createreadstream opts prefix wrapperSimple API for managing options in JavaScript applications. Create a new instance of Options.
cache options option config settings configuration defaults get set add boolean default define disable disabled emit enable enabled event false fillin has is listener listeners merge off once opt opts remove true visitResolve an options object based on configuration. Takes a config object that describes the options to accept/resolve and an options object (usually passed by a user) to resolve against the config. Returns a resolver that contains a resolve method for realtime resolution of options.
options functions resolver type configuration config opts opt default
We have large collection of open source products. Follow the tags from
Tag Cloud >>
Open source products are scattered around the web. Please provide information
about the open source projects you own / you use.
Add Projects.