oboe-promise
v1.0.1
Published
Oboe.js with promises
Downloads
23
Readme
oboe-promise
Oboe.js with promises
Install
npm install --save oboe-promiseUsage
The API is almost similar to original. Replace done with then and fail with catch and put run() before them.
import oboe from 'oboe-promise';
// { "apple": "banana", "foo": "bar" }
oboe('http://example.com/data.json')
.node('foo', foo => 'baz')
.node('apple', oboe.drop)
.run()
.then(console.log); // { foo: 'baz' }Thanks
Scaffolded with the help of awesome tiny-es-nm generator.
License
MIT © Leonard Kinday
