Registry / testing / prettier-miscellaneous

prettier-miscellaneous

JSON →
library1.5.3jsnpmunverified

A fork of Prettier (v1.5.3) that aims to support minor extra options not accepted by the official Prettier project. It provides an opinionated code formatter for JavaScript, TypeScript, JSX, Flow, CSS, LESS, SCSS, JSON, and GraphQL. The fork appears to be in maintenance mode with no recent updates; the last version is 1.5.3 from 2018. Unlike the actively maintained Prettier, this fork is no longer being developed, but it may still be useful for users who want specific customization options that were proposed but not merged upstream.

npm install prettier-miscellaneous
INSTALL
IMPORT
SIG · PRETTIER-MISCELLAN
P
prettier-miscellaneous
testingjavascriptv1.5.3
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

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

format
import { format } from 'prettier-miscellaneous'
import prettierMiscellaneous from 'prettier-miscellaneous'
Named export, not default.
check
import { check } from 'prettier-miscellaneous'
const check = require('prettier-miscellaneous').check
ESM named export; check returns a boolean.
resolveConfig
import { resolveConfig } from 'prettier-miscellaneous'
Resolves configuration from file.

Demonstrates basic usage of prettier-miscellaneous to format a JavaScript function.

import { format } from 'prettier-miscellaneous'; const sourceCode = `function hello(name) { return 'Hello, ' + name; }`; const formatted = format(sourceCode, { parser: 'babel', printWidth: 80, singleQuote: true, trailingComma: 'es5' }); console.log(formatted);
prettier --version
Debug
Known issues
deprecatedprettier-miscellaneous is a fork of Prettier v1.5.3 and is no longer actively maintained. Consider using the official Prettier or another actively maintained fork.
fix
Switch to prettier (official) or prettier-fork with maintained options.
affects: >=1.0.0
breakingThis fork may have options that differ from official Prettier. Check documentation for extra options not present in Prettier core.
fix
Review the README or source for custom options; be aware of compatibility.
affects: >=1.0.0
gotchaThe API is not guaranteed to be stable; breaking changes may occur between minor versions.
fix
Pin to exact version and test upgrades.
affects: >=1.0.0 <2.0.0
gotchaSome editor integrations may not work with this fork; use CLI or API directly.
fix
Use command-line tool or Node.js API; avoid editor plugins.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'prettier-miscellaneous'
Package not installed or wrong import path.
fix
Run 'npm install prettier-miscellaneous' and ensure import is correct.
TypeError: prettierMiscellaneous is not a function
Default import used instead of named import.
fix
Use import { format } from 'prettier-miscellaneous' instead of import prettierMiscellaneous from ...
Error: Cannot resolve parser 'babel'
Parser not bundled; may need to install additional parser plugins.
fix
Use 'babylon' parser instead: { parser: 'babylon' }
Upgrade
Version history
1.5.3latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
prettier-miscellaneous — npm install prettier-miscellaneous · libregistry