Visualizations of a css parse tree
Project description
css-explore
This originally started as a tool to visualize the parse tree of a css document, but more or less turned into a pretty printer.
The reason I made this project was to compare compilation outputs of various implementations of scss in an effort to switch a codebase from one compiler to another.
This uses:
- reworkcss/css for parsing
- ekalinin/nodeenv for bootstrapping node
Usage
$ css-format --help
usage: css-format [-h] filename
positional arguments:
filename
optional arguments:
-h, --help show this help message and exit
Example run:
$ echo 'body{color:red}' > test.css
$ css-format test.css
body {
color: red;
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
css_explore-1.1.0.tar.gz
(5.4 kB
view details)
Built Distribution
File details
Details for the file css_explore-1.1.0.tar.gz
.
File metadata
- Download URL: css_explore-1.1.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d10c047c2b75ffc3b4d6a642dcc8fd4b51886b3bd11f5e069d97ee2c02b44fdc |
|
MD5 | abd503d6ce45c9866aa491de9cbc09af |
|
BLAKE2b-256 | 1b2f855c8c6e9a35386f6a827a00b9df2a2428249a0ff387c928aefc992e3938 |
File details
Details for the file css_explore-1.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: css_explore-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b0df47335b41c94cf3844c594d8bc95de31b304bb2fe60994bdad5260ec0360 |
|
MD5 | c2e2dfe38d8795c873d3c4b81fc14262 |
|
BLAKE2b-256 | eacdee7701bb2e6fed6b8271c5fb7d6fa351794084f3779b8d21cf00156667fd |