Skip to content

Instantly share code, notes, and snippets.

@bendrucker
Created September 27, 2014 16:31
Show Gist options
  • Select an option

  • Save bendrucker/7ee2834458062cc1c7b8 to your computer and use it in GitHub Desktop.

Select an option

Save bendrucker/7ee2834458062cc1c7b8 to your computer and use it in GitHub Desktop.
Demo of using externally defined functions with promises
var messages = require('./src');
module.exports = messages.extract()
.then(messages.transform)
.done(messages.load);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment