htmlfy
npmv1.0.2TypeScripthtml formatter yo! Prettify or minify html.
Safe to adopt
Yes — htmlfy scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 95 days ago. 26 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- BMaintenance: grade B, Good.
Last published 95 days ago. 26 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 44 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding htmlfy to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- ESM + CommonJS
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the htmlfy README.
import { prettify } from 'htmlfy'
const html = `<main class="hello there world"><div>Welcome to htmlfy! </div></main>`
console.log(prettify(html))
/*
<main class="hello there world">
<div>
Welcome to htmlfy!
</div>
</main>
*/htmlfy vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| htmlfythis page | 0 | 1 | MIT | 3 months ago |
| minimizer-webpack-plugin | 0 | 1 | MIT | 7 days ago |
| @adobe/css-tools | 0 | 2 | MIT | 1 day ago |
| dom-serializer | 94.3M | 2 | MIT | 1 day ago |
| html-escaper | 79.8M | 1 | MIT | 1 day ago |
| is-potential-custom-element-name | 41.4M | 2 | MIT | 1 day ago |
Dependencies
Declared by htmlfy v1.0.2. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (2)
Used by
Popular packages that depend on htmlfy.
Relationship graph
Dependencies (left) and dependents (right) of htmlfy.
Frequently installed together
A high-level API to control headless Chrome over the DevTools Protocol
Check if a value is a plain object
The fast, flexible & elegant library for parsing and manipulating HTML and XML.
A simple list of CSS shorthand properties and which longhand properties they expand to
The lodash method `_.cloneDeep` exported as a module.
TypeScript definitions for @sinonjs/fake-timers
Utility package providing type information for a variety of WebdriverIO interfaces
A WDIO helper utility to provide several utility functions used across the project.
CSS value parser
React Element Selector Query (resq) - Query React components and children by selector (component name)
lightweight rgb/rgba to hex parser
Polyfill for the URLPattern API
Release history
21 releases in the last two years, typically about 5 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.0.2latest | 3 months ago | 44 KB | MIT |
| 1.0.1 | 9 months ago | 44 KB | MIT |
| 1.0.0 | 1 year ago | 43 KB | MIT |
| 0.8.1 | 1 year ago | 44 KB | MIT |
| 0.8.0 | 1 year ago | 44 KB | MIT |
| 0.7.5 | 1 year ago | 42 KB | MIT |
| 0.7.4 | 1 year ago | 42 KB | MIT |
| 0.7.3 | 1 year ago | 39 KB | MIT |
| 0.7.2 | 1 year ago | 37 KB | MIT |
| 0.7.1 | 1 year ago | 37 KB | MIT |
| 0.7.0 | 1 year ago | 36 KB | MIT |
| 0.6.7 | 1 year ago | 35 KB | MIT |
| 0.6.7-next.0 | 1 year ago | 34 KB | MIT |
| 0.6.6 | 1 year ago | 31 KB | MIT |
| 0.6.5 | 1 year ago | 30 KB | MIT |
Overview
htmlfy is an npm package that html formatter yo! Prettify or minify html. It has 1 known dependents in the graph. The latest version is 1.0.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need html formatter yo! Prettify or minify html and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
- Lean dependency tree (2 direct dependencies).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use htmlfy?
Yes — htmlfy scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 95 days ago. 26 releases in the last 2 years.
How do I install htmlfy?
Run `npm install htmlfy` to add htmlfy to your npm project.
What license is htmlfy released under?
htmlfy is distributed under the MIT license.
How popular is htmlfy?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on htmlfy.
Is htmlfy still maintained?
The most recent release of htmlfy (v1.0.2) was published 3 months ago.
Does htmlfy run install scripts?
No. htmlfy does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.