Skip to content
For those who don't like the node (er, result) convention.
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
.travis.yml
LICENCE
README.md
index.js
package.json
test.js

README.md

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
  }
))
Something went wrong with that request. Please try again.