# cssnano-cli

> A CLI for modular minifier cssnano.

Latest version **1.0.5** (published 2016-09-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install cssnano-cli
pnpm add cssnano-cli
yarn add cssnano-cli
bun add cssnano-cli
```

Provides the command `cssnano`.

## 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.5 |
| Published | 2016-09-22 |
| First published | 2015-09-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ben Briggs |
| Maintainers | beneb |
| Keywords | cli, cli-app, cssnano, compress, minify, optimise, optimisation, postcss |

## Links

- npm: https://www.npmjs.com/package/cssnano-cli
- Repository: https://github.com/ben-eb/cssnano-cli
- Issues: https://github.com/ben-eb/cssnano-cli/issues
- npm.io page: https://npm.io/package/cssnano-cli

## Dependencies (4)

- [cssnano](https://npm.io/package/cssnano.md) ^3.0.0
- [minimist](https://npm.io/package/minimist.md) ^1.2.0
- [read-file-stdin](https://npm.io/package/read-file-stdin.md) ^0.2.0
- [write-file-stdout](https://npm.io/package/write-file-stdout.md) 0.0.2

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2016-09-22
- 1.0.4 — 2016-05-11
- 1.0.3 — 2016-01-27
- 1.0.2 — 2015-12-30
- 1.0.1 — 2015-11-27
- 1.0.0 — 2015-09-06

## README

# [cssnano]-cli [![Build Status](https://travis-ci.org/ben-eb/cssnano-cli.svg?branch=master)][ci] [![NPM version](https://badge.fury.io/js/cssnano-cli.svg)][npm] [![Dependency Status](https://gemnasium.com/ben-eb/cssnano-cli.svg)][deps]

> A CLI for modular minifier [cssnano].

## Install

With [npm](https://npmjs.org/package/cssnano-cli) do:

```
npm install cssnano-cli --global
```

You can also install cssnano-cli as a development dependency of your project,
and get the command by this snippet in your .bashrc:

```
export PATH=$PATH:./node_modules/.bin
```

## Usage

```
$ cssnano --help

Usage: cssnano [input] [output] {OPTIONS}

Options:

    --sourcemap,  -s    Generate a sourcemap within the minified output.

    --no-[featureName]  Disable any individual processor module by its name.
                        [featureName] can be any one of these:

                        autoprefixer        filterOptimiser     normalizeUrl
                        calc                filterPlugins       orderedValues
                        colormin            functionOptimiser   reduceIdents
                        convertValues       mergeIdents         singleCharset
                        core                mergeLonghand       styleCache
                        discardComments     mergeRules          svgo
                        discardDuplicates   minifyFontValues    uniqueSelectors
                        discardEmpty        minifyParams        zindex
                        discardUnused       minifySelectors

    --safe              Disable advanced optimisations that are not always safe.
                        Currently, this disables custom identifier reduction,
                        z-index rebasing, unused at-rule removal & conversion
                        between absolute length values.


    --version,    -v    Outputs the version number.

    --help,       -h    Outputs this help screen.
```

You can also use stdin & stdout redirections:

```
cssnano < main.css > main.min.css
```

## Contributing

Pull requests are welcome. If you add functionality, then please add unit tests
to cover it.

## License

MIT © [Ben Briggs](http://beneb.info)

[ci]:      https://travis-ci.org/ben-eb/cssnano-cli
[deps]:    https://gemnasium.com/ben-eb/cssnano-cli
[npm]:     http://badge.fury.io/js/cssnano-cli
[cssnano]: https://github.com/ben-eb/cssnano

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