{"id":27252,"library":"prettier-standard-formatter","title":"prettier-standard-formatter","description":"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).","status":"deprecated","version":"0.222222222222222.333333333333333","language":"javascript","source_language":"en","source_url":"ssh://git@github.com/dtinth/prettier-standard-formatter","tags":["javascript"],"install":[{"cmd":"npm install prettier-standard-formatter","lang":"bash","label":"npm"},{"cmd":"yarn add prettier-standard-formatter","lang":"bash","label":"yarn"},{"cmd":"pnpm add prettier-standard-formatter","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core dependency for formatting","package":"prettier","optional":false},{"reason":"Used for Standard Style rules","package":"standard","optional":false}],"imports":[{"note":"Package is ESM-only since v? but likely still CJS. Check package.json.","wrong":"const prettierStandard = require('prettier-standard')","symbol":"prettierStandard","correct":"import prettierStandard from 'prettier-standard'"},{"note":"Named export may not exist; API shown uses default export with .format method.","wrong":"const { format } = require('prettier-standard-formatter')","symbol":"format","correct":"import { format } from 'prettier-standard-formatter'"},{"note":"CommonJS require style for older Node.js versions.","wrong":"","symbol":"default","correct":"const prettierStandard = require('prettier-standard')"}],"quickstart":{"code":"const prettierStandard = require('prettier-standard-formatter');\nconst sourceCode = 'const x = 1;  const y = 2;';\nprettierStandard.format(sourceCode).then(formatted => {\n  console.log(formatted);\n  // Output: const x = 1\n// const y = 2\n});","lang":"javascript","description":"Shows basic usage of formatting a string with prettier-standard-formatter using the default export."},"warnings":[{"fix":"Use prettier-standard or configure prettier with eslint-config-standard.","message":"Package is deprecated in favor of prettier-standard or prettier with standard config.","severity":"deprecated","affected_versions":"all"},{"fix":"Check actual latest version from npm registry.","message":"Version number is non-standard (0.222...). Likely a placeholder or typo; do not rely on semver.","severity":"gotcha","affected_versions":">=0.222.333"},{"fix":"Use npx to avoid ambiguity: npx prettier-standard-formatter","message":"CLI command name may conflict with other packages (prettier-standard-formatter vs prettier-standard).","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Install the correct package: npm install prettier-standard-formatter (note the -formatter suffix).","cause":"Incorrect import path in documentation vs actual package name.","error":"Error: Cannot find module 'prettier-standard'"},{"fix":"Import as: const prettierStandard = require('prettier-standard-formatter'); then call prettierStandard.format(source).","cause":"Importing default as a named export or using wrong method.","error":"TypeError: prettierStandard.format is not a function"},{"fix":"Use CommonJS require() or enable ESM (e.g., type: module in package.json).","cause":"Using ES modules in Node.js without proper configuration.","error":"SyntaxError: Unexpected token import"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}