oboe-promise

1.0.1 • Public • Published

oboe-promise

NPM version Build Status Coveralls Status Dependency Status

Oboe.js with promises

Install

npm install --save oboe-promise

Usage

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

Readme

Keywords

none

Package Sidebar

Install

npm i oboe-promise

Weekly Downloads

4

Version

1.0.1

License

MIT

Last publish

Collaborators

  • kinday