{"library":"prettier-standalone","title":"prettier-standalone","description":"Standalone browser build of Prettier, an opinionated code formatter. Version 1.3.1-0 (archived, replaced by prettier's built-in standalone bundles). This package is a legacy wrapper that allowed using Prettier in browser environments before Prettier officially shipped standalone UMD/ESM builds. It aggregates all Prettier language parsers into a single browser-compatible bundle. The official Prettier package now includes its own standalone builds (e.g., 'standalone.js', 'parser-*.js') in the 'prettier' npm package, making this package obsolete. No longer maintained; users should switch to the official 'prettier' package and its standalone modules.","language":"javascript","status":"deprecated","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-standalone"],"cli":null},"imports":["import prettier from 'prettier/standalone'","const result = await prettier.format(code, { parser: 'babel' })","const isFormatted = await prettier.check(code, { parser: 'babel' })"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// Install: npm install prettier\n// Use in browser via script tag (ES modules):\nimport prettier from 'https://unpkg.com/prettier@2.8.8/standalone.mjs';\nimport parserBabel from 'https://unpkg.com/prettier@2.8.8/parser-babel.mjs';\n\nconst code = 'const x = 1';\nprettier.format(code, {\n  parser: 'babel',\n  plugins: [parserBabel]\n}).then(result => console.log(result));\n// Output: \"const x = 1;\"\n","lang":"javascript","description":"Demonstrates using official prettier standalone in browser with ES module imports from CDN.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}