subtleGradient / Sheet.js

CommonJS & Browser JavaScript for parsing many CSS-like languages. Parse a CSS string into a JS object!
http://subtlegradient.github.com/Sheet.js/Test/
MIT License
61 stars 6 forks source link

Production Use? #11

Open ghost opened 13 years ago

ghost commented 13 years ago

Hi Thomas,

Has this been used in production? Is it safe to parse user entered CSS like with JSCSSP without erroring? Is it still under active development?

Cheers,

Jamie

subtleGradient commented 13 years ago

This is a test-driven project, so there are a ton of tests that cover tons of stuff. Those tests have been run (and pass) in all desktop browsers (including IE6) as well as Node.js and Narwhal.

That being said, I have not personally used this project in production. This is a hobby project that I created a part of a super secret personal project that is now on hold. I am no longer actively developing or supporting this project. I'm not sure if anyone else is using this project anywhere or not, though at least 1 fork is seeing active development.

Check out the test suite. If there are already tests for what you want, use it. If not, you could either clone the project and add additional tests to see if your use-case is already covered or fork the project and add support for what you want.

I cannot in good conscious recommend that you use this project since I don't want the guilt if it doesn't work our for you ;)

subtleGradient commented 13 years ago

Checkout the awesome work that @Inviz has done on his fork! https://github.com/Inviz/Sheet.js/branches

Inviz commented 13 years ago

I used it in production and continue to develop the parser of values/properties. In a few upcoming months, i'm going to switch my framework to use it even more with media query support.

That being said, if it has a full spec coverage, it does not matter much if it's in development or not.

My personal opinion is Sheet.js is really production ready, unlike many other css parsers i tried.

Inviz commented 13 years ago

Just for the record. Thomas' code is brilliant and i have had a lots of pleasure and creative ideas, thanks to his code.

It never occured to me, that complex parsing stuff can be that simple and useful