# pacificator

> Adds a standard syntax and indentation to css.

Latest version **0.1.0** (published 2015-11-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install pacificator
pnpm add pacificator
yarn add pacificator
bun add pacificator
```

Provides the command `pacificator`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2015-11-16 |
| First published | 2015-11-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Afonso Pacifer |
| Maintainers | afonsopacifer |
| Keywords | pacificator, idiomatic, css |

## Links

- npm: https://www.npmjs.com/package/pacificator
- Repository: https://github.com/afonsopacifer/pacificator
- Issues: https://github.com/afonsopacifer/pacificator/issues
- npm.io page: https://npm.io/package/pacificator

## Dependencies (1)

- [commander](https://npm.io/package/commander.md) ^2.9.0

## 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

- 0.1.0 (latest) — 2015-11-16
- 0.2.0 — 2015-11-16

## README

# Pacificator.js

> inspired by [Idiomatic CSS](https://github.com/necolas/idiomatic-css).

## What does it do?

*Adds a standard syntax and indentation to css.*

![](./screenshot.gif)

[See all rules](https://github.com/afonsopacifer/pacificator/blob/master/RULES.md).

## How to install

Verify if you have [node](http://nodejs.org/) and [npm](https://www.npmjs.org/) installed.

#### Command Line

```sh
$ npm install -g pacificator
```

#### Module

```sh
$ npm install pacificator
```

## Command Line Usage

*Output the css pacificated.*

```sh
$ pacificator <path>
```
<hr>

*Output the css pacificated and choose the amount of tabs for indentation.*

```sh
$ pacificator -t <path> <integer>
```

<hr>

*Output the css pacificated and choose the amount of spaces for indentation.*

```sh
$ pacificator -s <path> <integer>
```

<hr>

*Show the project version.*

```sh
$ pacificator --version
```

<hr>

*Show all available commands.*

```sh
$ pacificator --help
```

## Module Usage

```js
var pacificator = require('pacificator'),
    path = 'somePath/file.css';

/* Output the css pacificated. */
var output = pacificator.pacificate(path);

/* Output the css pacificated
and choose the amount of tabs for indentation. */
var output = pacificator.pacificateTab(path, 1);

/* Output the css pacificated
and choose the amount of spaces for indentation. */
var output = pacificator.pacificateSpace(path, 2);
```

## Not supported yet

- [ ] media queries syntax
- [ ] @charset syntax
- [ ] Shorthand syntax
- [ ] Other selectors *(ex: .abc > a)* syntax
- [ ] Animation syntax

[Report a bug :)](https://github.com/afonsopacifer/pacificator/issues)

## Contributing

Want to contribute? [Follow these recommendations](https://github.com/afonsopacifer/pacificator/blob/master/CONTRIBUTING.md).

## Licence

[MIT Licence](https://github.com/afonsopacifer/pacificator/blob/master/LICENCE.md) © [Afonso Pacifer](http://afonsopacifer.com/)

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