jsbin-robot
v0.1.0
Published
Use phantomjs to send code anonymously to jsbin.com
Downloads
2
Readme
jsbin-robot
Use phantomjs to send code anonymously to jsbin.com
Installation
npm install jsbin-robot
Usage
var JsbinRobot = require('jsbin-robot');
new JsbinRobot().send({
html: '<h1>hello</h1>',
js: 'console.log("world")',
css: 'h1 { background-color: red; }'
}, function(err, generatedUrl) {
if (err) { return console.log(err); }
console.log(generatedUrl);
});
Open the generated url, for instance I received http://jsbin.com/videgewupa/1/edit, and you will see your data saved in jsbin:
Running Tests
Coming soon
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request