0.0.2 • Published 12 years ago

qequire v0.0.2

Weekly downloads
3
License
-
Repository
github
Last release
12 years ago

qequire

Promisify modules as you require them.

var qequire = require('qequire');
var fs = qequire('fs');

// methods on fs return promises
// how crazy is that?
fs.readFile('foo.txt').finally(console.log);

Warning: probably breaks stuff.

Why

Promises are useful when you have a chain of async tasks and want predictable error handling.

See Also

Q provides some nice helpers. If you only want to wrap some APIs, you might want to check them out.

License

MIT

0.0.2

12 years ago

0.0.1

12 years ago

0.0.0

12 years ago