ercb

1.0.0 • Public • Published

ercb Build Status devDependency Status

For those who don't like the node (er, result) convention.

Usage

Pass the result of calling ercb to a node function that expects an (er, result) signature. e.g.

var fs = require("rs")
  , ercb = require("ercb")
 
fs.readFile("somefile.txt", ercb(
  function (data) {
    // Success callback
  },
  function (er) {
    // Failure callback
  }
))

Readme

Keywords

none

Package Sidebar

Install

npm i ercb

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • alanshaw