HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/quadcode-site/node_modules/sqwish/README.md
Welcome to Sqwish
=================

A [Node](http://nodejs.org) based CSS Compressor. It works like this.

``` javascript
require('sqwish').minify('body { color: #ff33cc; }');
// => "body{color:#f3c}"
```

CLI
---

Install it.

    $ npm install -g sqwish

Use it like this:

    $ sqwish app.css # default output is <file>.min.css therefore app.css => app.min.css
    $ # or...
    $ sqwish css/styles.css -o prod/something-else.min.css

Notes
-----

Sqwish does not attempt to fix invalid CSS, therefore, at minimum, your CSS should at least follow the basic rules:

``` css
selectors[,more selectors] {
  property: value;
  another-property: another value;
}
```

Strict Optimizations
--------------------

Aside from regular minification, in <code>--strict</code> mode Sqwish will combine duplicate selectors and merge duplicate properties.

``` css
/* before */
div {
  color: orange;
  background: red;
}
div {
  color: #ff33cc;
  margin: 1px 0px 1px 0px;
}

/* after */
div{color:#f3c;background:red;margin:1px 0}
```

This mode can be enabled as so:

    sqwish.minify(css, true);

on the command line

    $ sqwish styles.css --strict

Developers
----------

Be sure you have the proper testing harness set up ahead of time by installing the <code>sink-test</code> submodule

    $ npm install --dev

Tests can be added in <code>tests/tests.js</code>, and then run as such:

    $ npm test

License
-------

Sqwish is copyright Dustin Diaz 2011 under MIT License

**Happy Sqwishing!**