{"library":"mensch","title":"mensch","description":"A decent, non-validating CSS parser and stringifier. Current stable version is 0.3.4 (last release 2015-04-02, now in maintenance mode). Provides parse, stringify, and lex functions with support for comments and position tracking. Unlike validating parsers, mensch handles malformed CSS (mis-matched braces, missing semi-colons) without error. Differentiators: comments in AST, position info, and lenient parsing. Alternatives: PostCSS, css, csstree.","language":"javascript","status":"maintenance","last_verified":"Sat Apr 25","install":{"commands":["npm install mensch"],"cli":null},"imports":["import mensch from 'mensch'","import { parse } from 'mensch'","import { stringify } from 'mensch'","import { lex } from 'mensch'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import mensch from 'mensch';\n\nconst css = 'p { color: black; }';\nconst ast = mensch.parse(css, { comments: true, position: true });\nconsole.log(JSON.stringify(ast, null, 2));\nconst output = mensch.stringify(ast, { comments: true, indentation: '  ' });\nconsole.log(output);","lang":"typescript","description":"Parse a CSS string with comments and positions, then stringify with indentation.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}