Prettier-sdk is an opinionated code formatter that enforces a consistent style by parsing code and re-printing it with its own rules respecting maximum line length. The current stable version is 1.0.2, with an active release cadence. It integrates into editors on-save, pre-commit hooks, and CI pipelines to automate code formatting. Key differentiators: zero configuration for many languages, support for JavaScript, TypeScript, CSS, HTML, and more; highly customizable via configuration files; widely adopted in the JavaScript ecosystem. Note: This package is a placeholder—the real Prettier is at 'prettier' on npm.
npm install prettier-sdkNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: importing prettier and formatting a JavaScript snippet with options.
npm uninstall prettier-sdk && npm install prettier
Create a .prettierrc file in project root with your desired settings.
Use prettier-ignore comments for files that should not be formatted.
Uninstall prettier-sdk and install prettier: npm uninstall prettier-sdk && npm install prettier