| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/studiokobylisy_cz/www/wp-content/themes/studiokobylisy/node_modules/cssmin/ |
Upload File : |
## Description
This is a node.js module that minimize CSS files (cssmin).
It uses a port of YUICompressor made in JavaScript by Stoyan Stefanov based on Isaac Schlueter work.
[For more informations about YUICompressor](https://github.com/yui/yuicompressor)
## Installation
You can either download the plugin and unzip it into to your project folder or you can use npm to install the cssmin package.
```
npm -g i cssmin
```
## Usage
The module exports the cssmin function, so you can use it with :
```
var cssmin = require('cssmin');
```
The function cssmin takes two arguments :
* input : the CSS content you want to minimize.
* linebreakpos : the number of characters before the end of the line. If empty, the output will have only one line.
Example :
```
var puts = require('util').puts,
fs = require('fs'),
cssmin = require('./cssmin');
var css = fs.readFileSync("/Any/Random/CSS/File.css", encoding='utf8');
var min = cssmin(css);
puts(min);
```
## License
cssmin is released under a "BSD License":http://opensource.org/licenses/bsd-license.php.