🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

minify-html-css

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minify-html-css - npm Package Compare versions

Comparing version
1.0.1
to
1.0.2
+1
-1
dist/index.d.cts

@@ -215,2 +215,2 @@ import { TransformOutput } from '@swc/html/binding';

export { minifyHTML };
export { type MinifierType, type MinifyHTMLOptions, minifyHTML };

@@ -215,2 +215,2 @@ import { TransformOutput } from '@swc/html/binding';

export { minifyHTML };
export { type MinifierType, type MinifyHTMLOptions, minifyHTML };
{
"name": "minify-html-css",
"version": "1.0.1",
"version": "1.0.2",
"description": "🔽 A library to minify HTML and CSS.",

@@ -52,6 +52,6 @@ "keywords": [

"dependencies": {
"@swc/html": "^1.13.3"
"@swc/html": "^1.13.5"
},
"devDependencies": {
"@biomejs/biome": "2.2.0",
"@biomejs/biome": "2.2.2",
"@commitlint/cli": "^19.8.1",

@@ -61,3 +61,3 @@ "@commitlint/config-conventional": "^19.8.1",

"@semantic-release/git": "^10.0.1",
"@types/bun": "^1.2.20",
"@types/bun": "^1.2.21",
"lefthook": "^1.12.3",

@@ -64,0 +64,0 @@ "semantic-release": "^24.2.7",

@@ -5,3 +5,5 @@ # minify-html-css

This project provides a clean and easy-to-use interface for minifying HTML (and soon CSS) with well-documented options. It is designed to be fast, developer-friendly, and highly configurable for modern web projects.
[![CI](https://github.com/femincan/minify-html-css/actions/workflows/ci.yml/badge.svg)](https://github.com/femincan/minify-html-css/actions/workflows/ci.yml)
![NPM Version](https://img.shields.io/npm/v/minify-html-css)
[![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)

@@ -26,3 +28,3 @@ ---

I created this project to bring together the most performant HTML and CSS minifier libraries as clean, easy-to-use functions with well-documented options. The goal is to make web minification accessible, fast, and developer-friendly.
I created this project to bring together the most performant HTML and CSS minifier libraries (according to my tests and findings) as clean, easy-to-use functions with well-documented options. The goal is to make web minification accessible, fast, and developer-friendly.

@@ -73,6 +75,6 @@ ---

### `minifyHTML(input: string, options?: MinifyHTMLOptions): string`
### `minifyHTML(input: string, options?: MinifyHTMLOptions): TransformOutput`
**Description:**
Minifies an HTML string by removing unnecessary whitespace, comments, and compressing inline JS and CSS (where supported).
Minifies an HTML string by removing unnecessary whitespace, comments, and compressing inline JS and CSS (where supported). Returns an object containing `code` property for transformed code and `errors` array for possible errors.

@@ -79,0 +81,0 @@ > **Implementation note:**