Skip to main content

generate jsfiddle files

Project description

Installation

$ [sudo] pip install jsfiddle-generator

How it works

jsfiddle github repo files:

.
├── demo.html
├── demo.css
├── demo.js
├── demo.details

jsfiddle github gist files:

.
├── fiddle.html
├── fiddle.css
├── fiddle.js
├── fiddle.manifest

Examples

create demo.css, demo.js, demo.details in every dir with demo.html:

$ find . -name "demo.html" -exec python -m jsfiddle_generator.repo {} \;

create jsfiddle repo files in every empty dir:

find . -not -path '*/\.*' -type d -links 2 -exec python -m jsfiddle_generator.repo {} \;


paths with spaces:

OS speed command
any slow find ... -exec python -m jsfiddle_generator.repo {} \;
Linux fast find ... -print0 | xargs -d '\n' python -m jsfiddle_generator.repo
macOS fast find ... -print0 | xargs -0 python -m jsfiddle_generator.repo

Related

Links

readme42.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jsfiddle-generator-2020.12.3.tar.gz (2.6 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page