Skip to content
This repository was archived by the owner on Oct 7, 2021. It is now read-only.
/ jsfiddle-utils Public archive

Access user's fiddles from JavaScript - backup, process, etc.

License

Notifications You must be signed in to change notification settings

kubetz/jsfiddle-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JsFiddle Utils

This is currently a simple JavaScript project allowing to retrieve all fiddles of a specified user from jsfiddle.net. Part of this project is also a page for retrieving and printing all fiddles in stringified JSON format. You can access the page directly HERE.

Data are retrieved using a combination of JSFiddle's own JSONP service (to retrieve fiddle list) and YQL to retrieve a HTML content of every fiddle and save HTML/CSS/JS code.

Usage

To access jsfiddle-utils functionality you need these scripts loaded:

jsfiddle.retrieve(username, options, callback);

Where:

  • username - name of the user you want to retrieve all fiddles from
  • options - jsfiddle's webservice options (see documentation)
  • callback(data) - callback function that will get called when data are available

Data Structure (see documentation):

  "status": "ok",
  "list": [
    {
      "description": "...",		// description of the fiddle
      "author": "{username}",	// name of the author
      "url": "...",				// url of the fiddle
      "created": "...",			// creation date
      "framework": "...",		// used framwork
      "version": 123,           // base version number
      "latest_version": 234,    // latest version number
      "title": "..."			// title of the fiddle
      "code_html": "..."		// HTML code of the fiddle
      "code_css": "..."			// CSS code of the fiddle
      "code_js": "..."			// JavaScript code of the fiddle
    },
    // ...
  ],
  "overallResultSetCount": 123	// number of the results

About

Access user's fiddles from JavaScript - backup, process, etc.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published