oboe-promise

Oboe.js with promises

Usage no npm install needed!

<script type="module">
  import oboePromise from 'https://cdn.skypack.dev/oboe-promise';
</script>

README

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