Registry / devops / multi-formatter

multi-formatter

JSON →
library0.1.4jsnpmunverified

A CLI tool for formatting multiple syntaxes including JavaScript, CSS, JSON, Markdown, Jade/Pug, and Less. Version 0.1.4 is the latest stable release with no recent updates. It wraps several formatters like js-beautify, csscomb, pug-beautify, and prettify-markdown into a single command. Compared to Prettier, it supports more legacy formats but lacks active maintenance.

npm install multi-formatter
INSTALL
IMPORT
SIG · MULTI-FORMATTER
M
multi-formatter
devopsjavascriptv0.1.4
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.

multi-formatter
npm install --global multi-formatter
npm install multi-formatter
Intended as a CLI tool, not a library; global install recommended.

Install globally, then format JavaScript, JSON, and Markdown files in a directory.

mkdir test && cd test echo 'var x=1;' > test.js echo '{ "a":1 }' > test.json echo '# Hello' > test.md multi-formatter . echo 'Formatted files:' cat test.js cat test.json cat test.md
Debug
Known issues
deprecatedPackage has not been updated since 2017; may contain outdated dependencies.
fix
Consider migrating to Prettier for active development.
affects: <=0.1.4
gotchaGlobal install required; local install will not expose CLI command.
fix
Use -g flag: npm install -g multi-formatter
affects: >=0.1.0
gotchaFormats only files with known extensions; unknown types ignored silently.
fix
Check output; may need to rename files to .js, .json, .css, .md, .pug, .less
affects: >=0.1.0
gotchaUses multiple underlying formatters; each may have its own config (e.g., .csscomb.json) not integrated.
fix
Configure formatters individually if needed.
affects: >=0.1.0
Errors
Common errors & fixes
Command 'multi-formatter' not found
Package not installed globally or not in PATH.
fix
Run: npm install -g multi-formatter
ENOENT: no such file or directory, stat 'foo.js'
Path provided does not exist.
fix
Provide a valid directory or file path.
SyntaxError: Unexpected token ... in JSON at position 0
JSON file contains multibyte characters or invalid JSON.
fix
Validate JSON separately or adjust file content.
Upgrade
Version history
0.1.4latest on npm
Audit
Dependencies
commanderrequiredCLI argument parsing
js-beautifyrequiredJavaScript/CSS/HTML formatting
csscombrequiredCSS formatting
pug-beautifyrequiredPug/Jade formatting
prettify-markdownrequiredMarkdown formatting
json-beautifyrequiredJSON formatting
Agent activity
2 hits · last 30 days
node
2
Resources
multi-formatter — npm install multi-formatter · libregistry