# immutable-css-cli

> CSS linter for immutable selectors.

Latest version **1.1.1** (published 2016-02-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install immutable-css-cli
pnpm add immutable-css-cli
yarn add immutable-css-cli
bun add immutable-css-cli
```

Provides the command `immutable-css`.

## 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.1.1 |
| Published | 2016-02-19 |
| First published | 2015-10-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 5 |
| Author | John Otander |
| Maintainers | johno |
| Keywords | cli, cli-app, css, postcss, postcss-plugin, immutable, mutations |

## Links

- npm: https://www.npmjs.com/package/immutable-css-cli
- Repository: https://github.com/johnotander/immutable-css-cli
- Homepage: https://github.com/johnotander/immutable-css-cli#readme
- Issues: https://github.com/johnotander/immutable-css-cli/issues
- npm.io page: https://npm.io/package/immutable-css-cli

## Dependencies (8)

- [meow](https://npm.io/package/meow.md) ^3.7.0
- [chalk](https://npm.io/package/chalk.md) ^1.1.1
- [is-css](https://npm.io/package/is-css.md) ^1.0.0
- [postcss](https://npm.io/package/postcss.md) ^5.0.14
- [is-blank](https://npm.io/package/is-blank.md) ^1.1.0
- [file-exists](https://npm.io/package/file-exists.md) ^1.0.0
- [immutable-css](https://npm.io/package/immutable-css.md) ^1.1.1
- [postcss-import](https://npm.io/package/postcss-import.md) ^7.1.3

## 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.1.1 (latest) — 2016-02-19
- 1.1.0 — 2016-01-20
- 1.0.1 — 2015-10-26
- 1.0.0 — 2015-10-26

## README

<h1 align="center">
  <img width="360" src="https://rawgit.com/johnotander/immutable-css/master/media/logo.png" alt="immutable-css">
</h1>

[![Build Status](https://secure.travis-ci.org/johnotander/immutable-css-cli.png?branch=master)](https://travis-ci.org/johnotander/immutable-css-cli) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)

CLI app for [immutable-css](https://github.com/johnotander/immutable-css.git).

## Installation

```bash
npm i -g immutable-css-cli
```

## Usage

```sh
immutable-css -h
  CSS linter for immutable selectors.

  Usage
    $ immutable-css [<path/to/css/file.css> ...]

  Options
    -j, --json Return json to std out
    -s, --strict Lint mutations in the same file

  Example
    $ immutable-css vendor.css app.css
    $ immutable-css src/css/**/*.css
    $ immutable-css app.css --strict
    $ immutable-css src/css/**/*.css --json > mutations.json
```

```sh
immutable-css test/fixtures/app.css test/fixtures/vendor.css

.awesome was mutated 2 times
[line 5, col 1]: /Users/johnotander/code/lab/immutable-css-cli/test/fixtures/app.css
[line 5, col 1]: /Users/johnotander/code/lab/immutable-css-cli/test/fixtures/vendor.css

.foo was mutated 2 times
[line 17, col 1]: /Users/johnotander/code/lab/immutable-css-cli/test/fixtures/app.css
[line 1, col 1]: /Users/johnotander/code/lab/immutable-css-cli/test/fixtures/vendor.css
```

When mutations are present, `immutable-css` exits with an error code of `1`.

```sh
npm t && immutable-css dist/vendor.css dist/app.css && npm run deploy
```

## License

MIT

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Crafted with <3 by John Otander ([@4lpine](https://twitter.com/4lpine)).

***

> This package was initially generated with [yeoman](http://yeoman.io) and the [p generator](https://github.com/johnotander/generator-p.git).

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