1.0.1 • Published 9 years ago

oboe-promise v1.0.1

Weekly downloads
68
License
MIT
Repository
github
Last release
9 years ago

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

1.0.1

9 years ago

1.0.0

9 years ago