JSFiddle API for NodeJS
$ npm i --save jsfiddle
// require jsfiddle api
var JSFiddleApi = require ("../index");
// get this fiddle
JSFiddleApi.getFiddle ("u8B29", function (err, fiddleObj) {
// handle error
if (err) { return console.log (err); }
// output the response
console.log(fiddleObj)
});
- String
options
: A string in this format:"JSFIDDLE_ID/VERSION"
- Function
callback
: The callback function.
- ****
{}
: options - Function
callback
: The callback function.
Have an idea? Found a bug? See how to contribute.
Another way to support the development of my open-source modules is to set up a recurring donation, via Patreon. 🚀
PayPal donations are appreciated too! Each dollar helps.
Thanks! ❤️