I'm wondering if there is a SCSS (or Sass) parser, preferably written in JavaScript, that will output an abstract syntax tree.
These are perfect examples of I'm looking for:
UPDATE: The reason I'm asking is that I want to build a tool that would enforce a particular style of coding for SCSS and I can't do that with the above as they re-indent the compiled CSS, move braces, etc.
I finally found a tool that might help.
It's a CSS/preprocessor parser called gonzales-pe
.
I hope this helps anyone else looking at this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With