title: CSS parser for JavaScript?
body: <blockquote>
    <p><strong>Update 2018</strong>: This question was asked long before <a href="https://postcss.org/" rel="noreferrer">PostCSS</a> existed, and I would have probably used that.</p>
  </blockquote>
  
  <p>I'd like to parse a blob of CSS into an AST so I can add prefixes to certain CSS directives.</p>
  
  <p>Is there a CSS parser for JavaScript or Node that will do this?</p>
  
  <p>I've searched NPM. The only useful result I've found is <a href="https://github.com/nzakas/parser-lib" rel="noreferrer">parser-lib</a>, but it's stream-based and it looks like I'll need to write my own emitter for every CSS node.</p>
  
  <p><em>Update:</em> I also found <a href="http://www.glazman.org/JSCSSP/" rel="noreferrer">JSCSSP</a>, but it has no documentation...</p>