Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 650 Bytes

README.md

File metadata and controls

41 lines (28 loc) · 650 Bytes

blockspring.js

Javascript library to assist in creating blocks on Blockspring.

Installation

npm install blockspring

Example Usage

Save the following script to an example.js file:

var blockspring = require('blockspring');

blockspring.define(function(request, response) {
    var sum = request.params.num1 + request.params.num2;
    response.addOutput('sum', sum);
    response.end();
});

Then in your command line write:

node example.js --num1=20 --num2=50

or

echo '{"num1":20, "num2": 50}' | node example.js

License

MIT

Contact

Email us: founders@blockspring.com