# css-compressor

> YUI Compressor cssmin as a node.js module

Latest version **1.0.0** (published 2012-02-16) · 0 weekly downloads

## Install

```sh
npm install css-compressor
pnpm add css-compressor
yarn add css-compressor
bun add css-compressor
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2012-02-16 |
| First published | 2012-02-16 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Stoyan Stefanov, Isaac Schlueter, Julien Lecomte |
| Maintainers | matehat |
| Keywords | css, cssmin, compressor, yui compressor |

## Links

- npm: https://www.npmjs.com/package/css-compressor
- npm.io page: https://npm.io/package/css-compressor

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2012-02-16

## README

# Node CSS compressor
This is simply a copy of the [js port of YUI Compressor cssmin](https://github.com/fczuardi/yuicompressor/blob/master/ports/js/cssmin.js)
wraped as a node.js module.

## Installation
    cd path/to/your/node_modules
    git clone git://github.com/fczuardi/node-css-compressor.git

## Usage
    var cssmin = require(node-css-compressor).cssmin;
    var cssString = ".foobar { color : rgb(123, 123, 123); }";
    console.log(cssmin(cssString));

## License
> cssmin.js
> Author: Stoyan Stefanov - http://phpied.com/
> This is a JavaScript port of the CSS minification tool
> distributed with YUICompressor, itself a port
> of the cssmin utility by Isaac Schlueter - http://foohack.com/
> Permission is hereby granted to use the JavaScript version under the same
> conditions as the YUICompressor (original YUICompressor note below).
>
>
>YUI Compressor
>http://developer.yahoo.com/yui/compressor/
>Author: Julien Lecomte - http://www.julienlecomte.net/
>Copyright (c) 2011 Yahoo! Inc. All rights reserved.
>The copyrights embodied in the content of this file are licensed
>by Yahoo! Inc. under the BSD (revised) open source license.
>

---
_Source: https://npm.io/package/css-compressor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
