Skip to content

blockspring/blockspring.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Javascript library for assisting in building blocks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published