Prettier configured with JavaScript Standard Style rules for zero-config code formatting. Current version 1.0.1 (last released 2019). Combines prettier's formatting with standard style (no semicolons, single quotes, etc.). Useful for projects already using standard but wanting prettier's advanced formatting. Note: CLI version uses local installation if available.
npm install standard-prettierVerified import paths — ran on the pinned version, not inferred.
Basic usage of format function to format a string according to JavaScript Standard Style.
Consider using prettier with a standard config like eslint-config-standard or prettier-config-standard.
Always await or .then() the format call.
Ensure correct package installation path for CLI.
npm install prettier
Use const prettierStandard = require('prettier-standard'); then prettierStandard.format(source).then(...)