{"library":"prettier-reflow","title":"prettier-reflow","description":"Prettier is an opinionated code formatter that enforces a consistent code style by parsing your code and re-printing it with its own rules, taking maximum line length into account. Version 2.2.1 supports JavaScript, TypeScript, Flow, JSX, JSON, CSS, SCSS, Less, HTML, Vue, Angular, GraphQL, Markdown, and YAML. It can be run in editors on-save, pre-commit hooks, or CI environments. Prettier has a large active community with frequent releases and extensive plugin ecosystem. Key differentiators: automatic code formatting without configuration debates, wide language support, and integration with most editors and tools. Requires Node.js >=10.13.0.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-reflow"],"cli":{"name":"prettier","version":null}},"imports":["import { format } from 'prettier'","import { check } from 'prettier'","import { resolveConfig } from 'prettier'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { format } from 'prettier';\n\nconst sourceCode = `const add = (a,b)=>a+b;`;\nconst formatted = format(sourceCode, {\n  parser: 'babel',\n  semi: true,\n  singleQuote: true\n});\nconsole.log(formatted);\n// Output:\n// const add = (a, b) => a + b;","lang":"typescript","description":"Demonstrates how to format a JavaScript source code string using the prettier API with parser and options.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}