Registry / devops / fis3-postprocessor-prettyhtml

fis3-postprocessor-prettyhtml

JSON →
library3.1.0jsnpmunverified

A FIS3 postprocessor plugin that formats HTML files using prettyhtml. Version 3.1.0, maintained as part of the fisker/fis3-plugins repository. It is released on npm and integrates with FIS3 build system. Key differentiators: leverages prettyhtml for robust HTML formatting, supports Prettier integration via usePrettier option, and provides configurable tab width, indent style, print width, and single quote preferences. The plugin is specifically designed for FIS3's pipeline, not a standalone formatter.

npm install fis3-postprocessor-prettyhtml
INSTALL
IMPORT
SIG · FIS3-POSTPROCESSOR
F
fis3-postprocessor-prettyhtml
devopsjavascriptv3.1.0
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.

plugin
fis.match('*.html', { postprocessor: fis.plugin('prettyhtml', options) })
const prettyhtml = require('fis3-postprocessor-prettyhtml')
The package is a FIS3 plugin and must be used via fis.plugin(). Direct require is not supported.
options
const options = { tabWidth: 2, useTabs: false }
fis.plugin('prettyhtml', { tabWidth: '2' })
Options should be passed as an object; tabWidth expects a number, not string.
global install
npm install --global fis3-postprocessor-prettyhtml
npm install fis3-postprocessor-prettyhtml
When using with globally installed FIS3, this plugin must also be installed globally.

Configures FIS3 to format all HTML files using prettyhtml as a postprocessor with custom options.

// fis-conf.js const options = { tabWidth: 2, useTabs: false, printWidth: 80, usePrettier: true, singleQuote: false } fis.match('*.html', { postprocessor: fis.plugin('prettyhtml', options) })
Debug
Known issues
deprecatedFIS3 is a legacy build system. Consider migrating to modern tools.
fix
Evaluate migration to Webpack, Rollup, or other active build tools.
affects: >=1.0.0
gotchaPlugin must be installed globally if FIS3 is installed globally.
fix
Install the package with --global flag.
affects: >=1.0.0
gotchaOptions changes may occur in future versions without major semver bump.
fix
Pin exact version and review CHANGELOG before upgrading.
affects: >=3.0.0
Errors
Common errors & fixes
Error: Cannot find module 'fis3-postprocessor-prettyhtml'
Plugin is not installed globally when FIS3 is global.
fix
Run `npm install --global fis3-postprocessor-prettyhtml`.
TypeError: fis.plugin is not a function
FIS3 is not properly initialized or the plugin call is outside fis.match().
fix
Ensure fis.plugin is called inside a fis.match() block.
Upgrade
Version history
3.1.0latest on npm
Audit
Dependencies
prettyhtmlrequiredCore formatting library used to process HTML
fis3requiredRequired runtime for the plugin to function as a FIS3 postprocessor
Agent activity
2 hits · last 30 days
node
2
Resources
fis3-postprocessor-prettyhtml — npm install fis3-postprocessor-prettyhtml · libregistry