# css-whitespace

> Whitespace significant CSS to regular CSS

Latest version **1.1.1** (published 2015-02-24) · 0 weekly downloads

## Install

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

## 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 | 2015-02-24 |
| First published | 2012-12-03 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 63 |
| Author | TJ Holowaychuk |
| Maintainers | tjholowaychuk, mattmueller |
| Keywords | css, parser, rework |

## Links

- npm: https://www.npmjs.com/package/css-whitespace
- Repository: https://github.com/reworkcss/css-whitespace
- Issues: https://github.com/reworkcss/css-whitespace/issues
- npm.io page: https://npm.io/package/css-whitespace

## Dependencies (1)

- [debug](https://npm.io/package/debug.md) 2

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2015-02-24
- 1.1.0 — 2013-06-02
- 1.0.0 — 2013-02-27
- 0.0.6 — 2013-02-20
- 0.0.5 — 2013-01-22
- 0.0.4 — 2012-12-04
- 0.0.3 — 2012-12-03
- 0.0.2 — 2012-12-03
- 0.0.1 — 2012-12-03

## README

# css-whitespace

  Whitespace significant CSS to regular CSS. Typically used for [Rework](https://github.com/visionmedia/rework),
  however you may use it on its own if you like.

## Installation

```
$ npm install css-whitespace
$ component install visionmedia/css-whitespace
```

## API

```js
var compile = require('css-whitespace');
var css = compile('body\n  color: #888\n');
```

## Example

```css

@charset "utf-8"

@import "foo.css"

body
  padding: 50px
  background: black
  color: white

form
  button
    border-radius: 5px
    padding: 5px 10px

@media print
  body
    padding: 0

  button
    border-radius: 0
    width: 100%
```

yields:

```css
@charset "utf-8";

@import "foo.css";

body {
  padding: 50px;
  background: black;
  color: white;
}

form button {
  border-radius: 5px;
  padding: 5px 10px;
}

@media print {
  body {
    padding: 0;
  }
  button {
    border-radius: 0;
    width: 100%;
  }
}
```

## License

  MIT

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