{"id":28089454,"url":"https://github.com/facundovictor/jsfiddle-downloader","last_synced_at":"2025-05-13T12:58:21.516Z","repository":{"id":57283949,"uuid":"46521446","full_name":"facundovictor/jsfiddle-downloader","owner":"facundovictor","description":"It allows to download all your jsFiddles' scripts, just using a NodeJS script","archived":false,"fork":false,"pushed_at":"2019-04-27T14:58:33.000Z","size":96,"stargazers_count":11,"open_issues_count":3,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-04T01:01:52.522Z","etag":null,"topics":["fiddle","jsfiddle","jsfiddle-downloader","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/facundovictor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-19T21:27:35.000Z","updated_at":"2025-04-16T13:39:45.000Z","dependencies_parsed_at":"2022-09-19T22:41:47.941Z","dependency_job_id":null,"html_url":"https://github.com/facundovictor/jsfiddle-downloader","commit_stats":null,"previous_names":["facundovictor/jsfiddledownloader"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facundovictor%2Fjsfiddle-downloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facundovictor%2Fjsfiddle-downloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facundovictor%2Fjsfiddle-downloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facundovictor%2Fjsfiddle-downloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/facundovictor","download_url":"https://codeload.github.com/facundovictor/jsfiddle-downloader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253948387,"owners_count":21988953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fiddle","jsfiddle","jsfiddle-downloader","nodejs"],"created_at":"2025-05-13T12:58:20.963Z","updated_at":"2025-05-13T12:58:21.493Z","avatar_url":"https://github.com/facundovictor.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jsfiddle-downloader\n[![Build Status](https://travis-ci.org/facundovictor/jsfiddle-downloader.svg?branch=master)](https://travis-ci.org/facundovictor/jsfiddle-downloader) [![npm version](https://badge.fury.io/js/jsfiddle-downloader.svg)](https://badge.fury.io/js/jsfiddle-downloader) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/facundovictor/jsfiddle-downloader/master/LICENSE) [![Total Downloads](https://img.shields.io/npm/dt/jsfiddle-downloader.svg)](https://npm-stat.com/charts.html?package=jsfiddle-downloader)\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Ffacundovictor%2Fjsfiddle-downloader.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Ffacundovictor%2Fjsfiddle-downloader?ref=badge_shield)\n\nDownload fiddles from jsFiddle.net, just using a NodeJS script and save it as a single HTML file.\n\n![NPM](https://nodei.co/npm/jsfiddle-downloader.png?compact=true)\n\n**Installation**:\n\n```\n    npm install jsfiddle-downloader -g\n```\n\n**How to use it**:\n\n```\n  Usage: jsfiddle-downloader [options]\n\n  Options:\n\n        -h, --help                        output usage information\n        -V, --version                     output the version number\n        -u, --user \u003cuser\u003e                 Save all the users fiddles\n        -l, --link \u003curl\u003e                  Url of the fiddle to save\n        -o, --output \u003cpath\u003e               Target path to download the data\n        -c, --compressed                  Compress the spaces of the HTML output\n        -i, --identifier \u003cfiddle_id\u003e      Identifier of the fiddle to save\n        -f, --force-http                  Use http when the URI method is undefined\n        -v, --verbose                     Verbose output\n        -I, --filename-identifier         Use fiddle identifier as filename (default)\n        -T, --filename-title              Use fiddle title as filename\n        -IT, --filename-identifier-title  Use fiddle identifier and title as filename\n        -S, --filename-spaces             Keep spaces in filename (default: replace by underscores)\n```\n\nTo download a single fiddle from its id:\n\n```\n  jsfiddle-downloader -i \u003cfiddle-id\u003e [-o \u003coutput file\u003e] [-f]\n```\n\nTo download a single fiddle from its url:\n\n```\n  jsfiddle-downloader -l \u003curl\u003e [-o \u003coutput file\u003e]\n  jsfiddle-downloader -l jsfiddle.net/\u003cuser\u003e/\u003cfiddle-id\u003e\n  jsfiddle-downloader -l jsfiddle.net/\u003cuser\u003e/\u003cfiddle-id\u003e/\u003cversion\u003e\n  jsfiddle-downloader -l https://jsfiddle.net/\u003cfiddle-id\u003e\n  jsfiddle-downloader -l https://jsfiddle.net/\u003cfiddle-id\u003e/\u003cversion\u003e\n  jsfiddle-downloader -l https://jsfiddle.net/\u003cuser\u003e/\u003cfiddle-id\u003e/show/ -o myfiddle.html\n```\n\nTo download all scripts of a determinated 'user' from jsFiddle.net:\n\n```\n  jsfiddle-downloader -u \u003cuser\u003e [-o \u003coutput file\u003e]\n```\n\nIt'll download all backups in the currrent directory, the jsFiddles scripts will be named by default as:\n\n```\n  [\u003coutput-folder\u003e/]\u003cid-fiddle\u003e.html\n```\n\nTo save the files using the fiddle's title, provide the parameter `-T`:\n\n```\n  jsfiddle-downloader -T -u \u003cuser\u003e [-o \u003coutput file\u003e]\n```\n\nIt'll download all backups in the currrent directory, the jsFiddles scripts will be named as:\n\n```\n  [\u003coutput-folder\u003e/]\u003ctitle-fiddle\u003e.html\n```\n\nTo avoid running a local server for resolving URIs that doesn't have an URI method defined. Use the `-f` parameter:\n\n```\n  jsfiddle-downloader -f -i \u003cfiddle-id\u003e\n  jsfiddle-downloader -f -l \u003curl\u003e\n  jsfiddle-downloader -f -u \u003cuser\u003e\n```\n\nThis will replace all the `http://` in the href of link tags and in the src of script tags.\n\nYou can make the filenames more informative with these options:\n\n`-T` : `\u003cfiddle-title\u003e.html` (title given to the fiddle to make it public)\n\n`-IT`: `\u003cfiddle-id\u003e_\u003cfiddle-title\u003e.html` (combined identifier and title)\n\n`-S` : Keep spaces in filename (default: replace by underscores)\n\n**Tests:**\n\nIn the project directory `jsfiddle-downloader` run\n\n`mocha test [--keep]`\n\nIf you run tests with option `--keep`, the temporary directories containing\nhtml files downloaded during tests will be preserved for inspection.\n\n\n## License\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Ffacundovictor%2Fjsfiddle-downloader.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Ffacundovictor%2Fjsfiddle-downloader?ref=badge_large)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacundovictor%2Fjsfiddle-downloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffacundovictor%2Fjsfiddle-downloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacundovictor%2Fjsfiddle-downloader/lists"}