adrienjoly / node-jsfiddle

:id: JSFiddle API for NodeJS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jsfiddle

Patreon PayPal AMA Version Downloads Get help on Codementor

JSFiddle API for NodeJS

☁️ Installation

$ npm i --save jsfiddle

📋 Example

// 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)
});

📝 Documentation

getFiddle(options, callback)

Params

  • String options: A string in this format: "JSFIDDLE_ID/VERSION"
  • Function callback: The callback function.

saveFiddle({}, callback)

Params

  • **** {}: options
  • Function callback: The callback function.

😋 How to contribute

Have an idea? Found a bug? See how to contribute.

💰 Donations

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! ❤️

📜 License

MIT © Ionică Bizău

About

:id: JSFiddle API for NodeJS

License:MIT License


Languages

Language:JavaScript 100.0%