Oboe.js with promises
npm install --save oboe-promise
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' }
Scaffolded with the help of awesome tiny-es-nm
generator.
MIT © Leonard Kinday