node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »

tower-program

Tower Program

Installation

node.js:

$ npm install tower-program

browser:

$ component install tower/program

Example

var program = require('tower-program');
 
program('count-words')
  .input('words') // or `type` 
    .attr('name')
  .output('count', 'integer');
 
var counter = program('count-words').init();
counter.output('count').on('data', function(count){
  console.log(count);
});
counter.input('words').send({ name: 'hello' });

Notes

Licence

MIT