</>PackageGraphPackageGraph

htmlfy

npmv1.0.2TypeScript

html 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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

44 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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.

PackageWeekly downloadsDependentsLicenseLast release
htmlfythis page01MIT3 months ago
minimizer-webpack-plugin01MIT7 days ago
@adobe/css-tools02MIT1 day ago
dom-serializer94.3M2MIT1 day ago
html-escaper79.8M1MIT1 day ago
is-potential-custom-element-name41.4M2MIT1 day ago

Dependencies

Declared by htmlfy v1.0.2. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (2)

typescript ^5.0.0vitest ^2.1.2

Used by

Popular packages that depend on htmlfy.

Relationship graph

Dependencies (left) and dependents (right) of htmlfy.

webdriveriohtmlfy
htmlfy dependencies dependents

Frequently installed together

Release history

21 releases in the last two years, typically about 5 days apart.

Recent versions of htmlfy
VersionPublishedSizeLicense
1.0.2latest3 months ago44 KBMIT
1.0.19 months ago44 KBMIT
1.0.01 year ago43 KBMIT
0.8.11 year ago44 KBMIT
0.8.01 year ago44 KBMIT
0.7.51 year ago42 KBMIT
0.7.41 year ago42 KBMIT
0.7.31 year ago39 KBMIT
0.7.21 year ago37 KBMIT
0.7.11 year ago37 KBMIT
0.7.01 year ago36 KBMIT
0.6.71 year ago35 KBMIT
0.6.7-next.01 year ago34 KBMIT
0.6.61 year ago31 KBMIT
0.6.51 year ago30 KBMIT

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

Keywords

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.