Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Latest commit

 

History

History
25 lines (18 loc) · 345 Bytes

README.rst

File metadata and controls

25 lines (18 loc) · 345 Bytes

css2json.py

Convert style sheets to json. Python clone of kesla/css2json

Install

pip install css2json

Usage

>>> import css2json
>>> css2json.css2json("""
... p {
...     color: #222;
...     margin: 10px;
... }
... """)
'{"p": {"color": "#222", "margin": "10px"}}'
>>>