{"library":"prettier-format","title":"prettier-format","description":"Auto-loads Prettier config and formats code with a single async function. Current stable version is 4.0.0, released with breaking changes removing the default 'babel' parser and fixing the `filePath` option casing. Released on npm, maintained by fisker. Key differentiator: eliminates need to manually call `prettier.resolveConfig` and `prettier.format` separately; all configuration loading is done internally based on `filepath`.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-format"],"cli":null},"imports":["import format from 'prettier-format'","import format from 'prettier-format'","const format = (await import('prettier-format')).default"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import format from 'prettier-format';\n\n// Format with auto-loaded config from file path\nconst formatted = await format('const x = 1', {\n  filepath: '/path/to/file.js',\n  semi: false,\n});\nconsole.log(formatted);\n// 'const x = 1\\n'","lang":"javascript","description":"Demonstrates using the default export to format source code with automatic config loading based on filepath.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}