Is there a download function in jsFiddle?

前端 未结 16 2724
小鲜肉
小鲜肉 2020-12-02 03:37

Is there a download function in jsFiddle, so you can download an HTML with the CSS, HTML and JS in one file, so you can run it without jsFiddle for debug purposes?

16条回答
  •  无人及你
    2020-12-02 04:24

    Still no download functionality supported.. BUT.. you can use the jsfiddle-downloader node script.

    Installation:

    npm install jsfiddle-downloader -g
    

    To download a single fiddle from its id:

    jsfiddle-downloader -i  [-o ]
    

    To download a single fiddle from its url:

    jsfiddle-downloader -l  [-o ]
    jsfiddle-downloader -l jsfiddle.net//
    jsfiddle-downloader -l https://jsfiddle.net/
    jsfiddle-downloader -l https://jsfiddle.net///show/ -o myfiddle.html
    

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

    jsfiddle-downloader -u  [-o ]
    

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

    [/].html
    

提交回复
热议问题