Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

rejected-promise

1.0.0 • Public • Published

rejected-promise

NPM Version NPM Downloads Build Status Coverage Status Dependency Status

Make promises that can be rejected and unhandled (where Node doesn’t complain).

Install: npm install rejected-promise

const RejectedPromise = require('rejected-promise');
 
// Implements all Promise APIs.
RejectedPromise.resolve(42);
RejectedPromise.reject(new Error('Meh'));
new RejectedPromise((resolve, reject) => {
  // ...
});
 
// Silences `rejectedPromiseFromSomeSource`.
RejectedPromise.resolve(rejectedPromiseFromSomeSource);

License

MIT

Install

npm i rejected-promise

DownloadsWeekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar