Skip to content

Instantly share code, notes, and snippets.

@catarak
Last active April 26, 2017 15:13
Show Gist options
  • Save catarak/8ad3ff868736839742416e48ebaffcc4 to your computer and use it in GitHub Desktop.
Save catarak/8ad3ff868736839742416e48ebaffcc4 to your computer and use it in GitHub Desktop.
var seneca = require('seneca')();
seneca.use('./todo.js');
seneca.act({role:'todo', cmd:'create', name:'Buy Milk'}, function(err, todo) {
console.log(todo);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment