Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrewpetrochenkov/jsfiddle-generator.py
:violin: generate jsfiddle files
https://github.com/andrewpetrochenkov/jsfiddle-generator.py
cli generator jsfiddle python
Last synced: 4 days ago
JSON representation
:violin: generate jsfiddle files
- Host: GitHub
- URL: https://github.com/andrewpetrochenkov/jsfiddle-generator.py
- Owner: andrewpetrochenkov
- License: unlicense
- Created: 2019-03-25T18:50:46.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-03T21:01:23.000Z (almost 4 years ago)
- Last Synced: 2024-10-12T20:13:38.459Z (about 1 month ago)
- Topics: cli, generator, jsfiddle, python
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![](https://img.shields.io/pypi/v/jsfiddle-generator.svg?maxAge=3600)](https://pypi.org/project/jsfiddle-generator/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)
[![](https://github.com/andrewp-as-is/jsfiddle-generator.py/workflows/tests42/badge.svg)](https://github.com/andrewp-as-is/jsfiddle-generator.py/actions)### Installation
```bash
$ [sudo] pip install jsfiddle-generator
```#### How it works
[jsfiddle github repo files](https://docs.jsfiddle.net/github-integration/untitled-1):
```
.
├── demo.html
├── demo.css
├── demo.js
├── demo.details
```[jsfiddle github gist files](https://docs.jsfiddle.net/github-integration/untitled):
```
.
├── fiddle.html
├── fiddle.css
├── fiddle.js
├── fiddle.manifest
```#### Examples
create `demo.css`, `demo.js`, `demo.details` in every dir with `demo.html`:
```bash
$ 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
+ [`jsfiddle-build.py` - build `build.html` from jsfiddle files](https://pypi.org/project/jsfiddle-build/)
+ [`jsfiddle-factory.py` - jsfiddles mass production](https://pypi.org/project/jsfiddle-build/)
+ [`jsfiddle-generator.py` - jsfiddle files generator](https://pypi.org/project/jsfiddle-generator/)
+ [`jsfiddle-github.py` - jsfiddle github integration helper](https://pypi.org/project/jsfiddle-github/)
+ [`jsfiddle-readme-generator.py` - generate jsfiddle `README.md`](https://pypi.org/project/jsfiddle-readme-generator/)#### Links
+ [Display fiddle from Gist](https://docs.jsfiddle.net/github-integration/untitled)
+ [Display fiddle from a Github repository](https://docs.jsfiddle.net/github-integration/untitled-1)