GithubHelp home page GithubHelp logo

adammendoza / jsfiddle-downloader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from facundovictor/jsfiddle-downloader

0.0 1.0 0.0 33 KB

It allows to download all your jsFiddles' scripts, just using a NodeJS script

License: MIT License

JavaScript 100.00%

jsfiddle-downloader's Introduction

jsfiddle-downloader

npm version GitHub license Total Downloads

Download fiddles from jsFiddle.net, just using a NodeJS script and save it as a single HTML file.

NPM

Installation:

    npm install jsfiddle-downloader -g

How to use it:

    Usage: node jsfiddle-downloader [options]

    Options:

    -h, --help                    output usage information
    -V, --version                 output the version number
    -u, --user <user>             Save all the users fiddles
    -l, --link <url>              Url of the fiddle to save
    -o, --output <path>           Target path to download the data
    -c, --compressed              Compress the spaces of the HTML output
    -i, --identifier <fiddle_id>  Identifier of the fiddle to
    -f, --force-http              Use http when the URI method is undefined
    -v, --verbose                 Verbose output

To download a single fiddle from its id:

  jsfiddle-downloader -i <fiddle-id> [-o <output file>] [-f]

To download a single fiddle from its url:

  jsfiddle-downloader -l <url> [-o <output file>]
  jsfiddle-downloader -l jsfiddle.net/<user>/<fiddle-id>
  jsfiddle-downloader -l jsfiddle.net/<user>/<fiddle-id>/<version>
  jsfiddle-downloader -l https://jsfiddle.net/<fiddle-id>
  jsfiddle-downloader -l https://jsfiddle.net/<fiddle-id>/<version>
  jsfiddle-downloader -l https://jsfiddle.net/<user>/<fiddle-id>/show/ -o myfiddle.html

To download all scripts of a determinated 'user' from jsFiddle.net:

  jsfiddle-downloader -u <user> [-o <output file>]

It'll download all backups in the currrent directory, the jsFiddles scripts will be named as:

  [<output-folder>/]<id-fiddle>.html

To avoid running a local server for resolving URIs that doesn't have an URI method defined. Use the -f parameter:

  jsfiddle-downloader -f -i <fiddle-id>
  jsfiddle-downloader -f -l <url>
  jsfiddle-downloader -f -u <user>

This will replace all the http:// in the href of link tags and in the src of script tags.

jsfiddle-downloader's People

Contributors

facundovictor avatar

Watchers

Adam J. Mendoza avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.