node-minify

Minify JavaScript, CSS, HTML, JSON, and images via a unified API.

521|50|Updated Jun 2, 2011
One-click install
npx skills add https://github.com/srod/node-minify --skill node-minify
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: node-minify
Source: https://github.com/srod/node-minify/tree/main
Command: npx skills add https://github.com/srod/node-minify --skill node-minify

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Minifies JavaScript, CSS, HTML, JSON, and images to reduce file size and improve load times.

Core Features & Use Cases

  • Minify JavaScript, CSS, HTML, JSON, and images across build pipelines and asset workflows.
  • Optimize assets for faster page loads and lower bandwidth usage.
  • Use in CI or tooling to consistently compress assets before deployment.

Quick Start

Install @node-minify/core and a compressor, then call minify() with input/output or content to produce a minified result.

Frequently Asked Questions about node-minify

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I minify JavaScript and CSS in a build pipeline before deployment?

To minify JavaScript and CSS in a build pipeline, you can use a unified minification API that compresses assets before deployment. This reduces file sizes and improves load times across CI workflows.

What is the best way to compress images and HTML for web projects?

The best way to compress images and HTML for web projects is using an asset minification tool that supports multiple file types. This lowers bandwidth usage and optimizes assets for faster page loads.

Can I minify JSON files alongside HTML and JavaScript assets?

Yes, you can minify JSON files alongside HTML and JavaScript assets. A unified minification interface handles multiple compressors and asset types to reduce overall file size for web projects.

How does asset minification improve page load times?

Asset minification improves page load times by reducing the file size of JavaScript, CSS, HTML, JSON, and images. Smaller files require less bandwidth and transfer faster to the client browser.

Do I need to install specific compressors to minify assets with node-minify?

Yes, you need to install the core package and a specific compressor to minify assets. You then call the minify function with input or content to produce a compressed asset result.