Registry / devops / prettier-standard-formatter

prettier-standard-formatter

JSON →
library0.222222222222222.333333333333333jsnpmunverified

Prettier for JavaScript Standard Style. Version 0.222222222222222.333333333333333. Combines prettier pretty-printer with JavaScript Standard Style rules for zero-config formatting. Not actively maintained; alternatives include prettier-standard or prettier with standard config. Release cadence: sporadic. Key differentiator: auto-applies Standard Style without manual configuration, but version numbers are non-standard (likely a placeholder).

npm install prettier-standard-formatter
INSTALL
IMPORT
SIG · PRETTIER-STANDARD-
P
prettier-standard-formatter
devopsjavascriptv0.222222222222222.333333333333333
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

prettierStandard
import prettierStandard from 'prettier-standard'
const prettierStandard = require('prettier-standard')
Package is ESM-only since v? but likely still CJS. Check package.json.
format
import { format } from 'prettier-standard-formatter'
const { format } = require('prettier-standard-formatter')
Named export may not exist; API shown uses default export with .format method.
default
const prettierStandard = require('prettier-standard')
CommonJS require style for older Node.js versions.

Shows basic usage of formatting a string with prettier-standard-formatter using the default export.

const prettierStandard = require('prettier-standard-formatter'); const sourceCode = 'const x = 1; const y = 2;'; prettierStandard.format(sourceCode).then(formatted => { console.log(formatted); // Output: const x = 1 // const y = 2 });
prettier-standard-formatter --version
Debug
Known issues
deprecatedPackage is deprecated in favor of prettier-standard or prettier with standard config.
fix
Use prettier-standard or configure prettier with eslint-config-standard.
affects: all
gotchaVersion number is non-standard (0.222...). Likely a placeholder or typo; do not rely on semver.
fix
Check actual latest version from npm registry.
affects: >=0.222.333
gotchaCLI command name may conflict with other packages (prettier-standard-formatter vs prettier-standard).
fix
Use npx to avoid ambiguity: npx prettier-standard-formatter
affects: all
Errors
Common errors & fixes
Error: Cannot find module 'prettier-standard'
Incorrect import path in documentation vs actual package name.
fix
Install the correct package: npm install prettier-standard-formatter (note the -formatter suffix).
TypeError: prettierStandard.format is not a function
Importing default as a named export or using wrong method.
fix
Import as: const prettierStandard = require('prettier-standard-formatter'); then call prettierStandard.format(source).
SyntaxError: Unexpected token import
Using ES modules in Node.js without proper configuration.
fix
Use CommonJS require() or enable ESM (e.g., type: module in package.json).
Upgrade
Version history
0.222222222222222.333333333333333latest on npm
Audit
Dependencies
prettierrequiredCore dependency for formatting
standardrequiredUsed for Standard Style rules
Agent activity
4 hits · last 30 days
node
4
Resources
prettier-standard-formatter — npm install prettier-standard-formatter · libregistry