# postcss-messages

> PostCSS plugin to display warning messages right in your browser

Latest version **0.2.2** (published 2015-05-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install postcss-messages
pnpm add postcss-messages
yarn add postcss-messages
bun add postcss-messages
```

## 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.2.2 |
| Published | 2015-05-30 |
| First published | 2015-04-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 76 |
| Author | Alexey Gaziev |
| Maintainers | gazay |
| Keywords | postcss, css, postcss-plugin, warnings |

## Links

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

## Dependencies (1)

- [postcss](https://npm.io/package/postcss.md) ~4.1.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.2.2 (latest) — 2015-05-30
- 0.2.1 — 2015-04-03
- 0.2.0 — 2015-04-03
- 0.1.0 — 2015-04-03

## README

# PostCSS Messages [![Build Status](https://travis-ci.org/postcss/postcss-messages.svg)](https://travis-ci.org/postcss/postcss-messages)

> [PostCSS] plugin to display warning messages right in your browser.

If a plugin before this one is throwning a warning, this plugin will append warning messages to `html:before`.

![Postcss-messages – warnings from other postcss plugins in your browser](http://postcss.github.io/postcss-messages/screenshot.png)

## Usage

Put this plugin after all plugins if you want to cover all possible warnings:

```js
postcss([
  require('other-plugin'),
  require('postcss-messages')
])
```

### Options

#### `selector` (`{String}`, default: `html::before`)

You can override selector that will be used to display messages:

```js
var messages = require('postcss-messages')
postcss([
  messages({
    selector: 'body:before'
  })
])
```

#### `styles` (`{Object}`, default: opininated styles)

You can override default styles applied to the selector:

```js
var messages = require('postcss-messages')
postcss([
  messages({
    styles: {
      color: 'gray',
      'text-align': 'center'
    }
  })
])
```

See [PostCSS] docs for examples for your environment.

## License

The MIT License

[PostCSS]: https://github.com/postcss/postcss

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