katiefenn / parker

Stylesheet analysis tool.
Other
2.47k stars 73 forks source link

added JSON output using the --json option #21

Closed caolan closed 10 years ago

caolan commented 10 years ago

Not sure how to sensibly test this, let me know if you have some thoughts :)

katiefenn commented 10 years ago

You're right. I've been looking for examples of command-line routers to sort out parker.js. I need to find one soon, because this file is key to many items on the roadmap and many PRs that have been submitted.

I think it would good to separate the switch name from the format type, because I am thinking of offering several output formats. I had in mind a usage like

parker --format=json

Do you think that would be an improvement?

caolan commented 10 years ago

yep, a --format option sounds good... want me to update it?

katiefenn commented 10 years ago

Thank you!