Registry / devops / fis3-postprocessor-posthtml-beautify

fis3-postprocessor-posthtml-beautify

JSON →
library3.1.0jsnpmunverified

A FIS3 build system plugin that beautifies HTML files using posthtml-beautify. This package is a postprocessor for FIS3 (Front-end Integrated Solution), which applies formatting rules to HTML output during the build pipeline. Version 3.1.0 is the current stable release, but the project appears to be in maintenance mode with infrequent updates. It relies on the posthtml-beautify library and is specifically designed for the FIS3 ecosystem. Differentiators: it integrates tightly with FIS3's plugin system and allows configuration of indentation, line endings, and end-of-file newlines.

npm install fis3-postprocessor-posthtml-beautify
INSTALL
IMPORT
SIG · FIS3-POSTPROCESSOR
F
fis3-postprocessor-posthtml-beautify
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.plugin('posthtml-beautify', options)
require('fis3-postprocessor-posthtml-beautify')
This is a FIS3 plugin, not a standalone module. It is loaded via fis.plugin() in your fis-conf.js configuration file.

Configures FIS3 to beautify all HTML files with 2-space indentation, Unix line endings, and a trailing newline.

// fis-conf.js fis.match('*.html', { postprocessor: fis.plugin('posthtml-beautify', { rules: { indent: 2, eol: '\n', eof: '\n' } }) });
Debug
Known issues
deprecatedThe posthtml-beautify library may have breaking changes in future versions.
fix
Pin to a specific version of posthtml-beautify and test after updates.
affects: >=3.0.0
gotchaDefault options might change in future releases, potentially altering formatting behavior.
fix
Always explicitly provide options in your config to ensure consistent behavior.
affects: *
gotchaThis plugin only works within the FIS3 build system; it cannot be used standalone.
fix
Ensure your project uses FIS3 and that the plugin is installed globally or locally.
affects: *
Errors
Common errors & fixes
Error: Cannot find module 'fis3-postprocessor-posthtml-beautify'
Plugin not installed or not in correct location.
fix
Run 'npm install --global fis3-postprocessor-posthtml-beautify' or add to local devDependencies.
TypeError: fis.plugin is not a function
fis.plugin() used outside of FIS3 configuration context.
fix
Ensure this code is inside fis-conf.js and that FIS3 is properly initialized.
Upgrade
Version history
3.1.0latest on npm
Audit
Dependencies
posthtml-beautifyrequiredCore formatting library used for beautification
fis3requiredRequired as build system; plugin only works within FIS3
Agent activity
2 hits · last 30 days
node
2
Resources
fis3-postprocessor-posthtml-beautify — npm install fis3-postprocessor-posthtml-beautify · libregistry