Skip to content

adrienjoly/node-jsfiddle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Packages

 
 
 

Languages

  • JavaScript 100.0%