errres

1.0.1 • Public • Published

errres

Makes promise from (err, res) pair. Сonsider this as a unthen vice versa.

Build Status NPM version

Install

npm i errres

Usage

const errres = require('errres');

errres(new Error()).catch(e => console.log(e));
errres(null, 'TEST').then(r => console.log(r))

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i errres

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

3.02 kB

Total Files

8

Last publish

Collaborators

  • astur