Skip to content

Instantly share code, notes, and snippets.

@robertleeplummerjr
Created January 28, 2016 20:40
Show Gist options
  • Save robertleeplummerjr/44efcc390cd899181461 to your computer and use it in GitHub Desktop.
Save robertleeplummerjr/44efcc390cd899181461 to your computer and use it in GitHub Desktop.
var fs = something(require('fs'));
fs.readFile('')
.then(function(str) {})
.then(function() {})
.done(function() {})
.error(function (err) {
//this is an optional fn that is already defined to throw the error, but can be overridden
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment