# postcss-parse-atrule-events

> postcss plugin for parsing atrule events

Latest version **0.8.252** (published 2017-12-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install postcss-parse-atrule-events
pnpm add postcss-parse-atrule-events
yarn add postcss-parse-atrule-events
bun add postcss-parse-atrule-events
```

## 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.8.252 |
| Published | 2017-12-19 |
| First published | 2017-03-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 12 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 18 |
| Author | Serkan Sipahi |
| Maintainers | bitcollage |
| Keywords | postcss, parse atrule events |

## Links

- npm: https://www.npmjs.com/package/postcss-parse-atrule-events
- Repository: https://github.com/SerkanSipahi/app-decorators/tree/master/packages/postcss-parse-atrule-events
- Issues: https://github.com/SerkanSipahi/app-decorators/issues
- npm.io page: https://npm.io/package/postcss-parse-atrule-events

## Dependencies (12)

- [should](https://npm.io/package/should.md) 13.1.3
- [core-js](https://npm.io/package/core-js.md) 2.5.2
- [cssnano](https://npm.io/package/cssnano.md) 3.10.0
- [postcss](https://npm.io/package/postcss.md) 6.0.14
- [babel-cli](https://npm.io/package/babel-cli.md) 6.26.0
- [assert-diff](https://npm.io/package/assert-diff.md) 1.2.4
- [autoprefixer](https://npm.io/package/autoprefixer.md) 7.2.2
- [postcss-nested](https://npm.io/package/postcss-nested.md) 2.1.2
- [postcss-normalize](https://npm.io/package/postcss-normalize.md) 4.0.0
- [regex-css-media-query](https://npm.io/package/regex-css-media-query.md) 1.0.0
- [app-decorators-simple-it](https://npm.io/package/app-decorators-simple-it.md) 0.8.252
- [babel-plugin-transform-es2015-modules-commonjs](https://npm.io/package/babel-plugin-transform-es2015-modules-commonjs.md) 6.26.0

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 0.8.252 (latest) — 2017-12-19
- 0.8.251 — 2017-12-10
- 0.8.250 — 2017-10-02
- 0.8.249 — 2017-10-01
- 0.8.248 — 2017-10-01
- 0.8.247 — 2017-10-01
- 0.8.245 — 2017-09-30
- 0.8.244 — 2017-09-21
- 0.8.242 — 2017-08-22
- 0.8.241 — 2017-08-22
- 0.8.240 — 2017-08-16
- 0.8.239 — 2017-08-12
- 0.8.238 — 2017-08-12
- 0.8.237 — 2017-08-10
- 0.8.236 — 2017-08-10
- … 30 more at https://npm.io/package/postcss-parse-atrule-events/versions

## README

## postcss-parse-atrule-events
Postcss plugin for auto generating code

<p>
    <a href="https://david-dm.org/SerkanSipahi/app-decorators?path=packages/postcss-parse-atrule-events"><img src="https://david-dm.org/SerkanSipahi/david.svg" alt="Dependency Status"></a>
    <a href="https://david-dm.org/SerkanSipahi/app-decorators?path=packages/postcss-parse-atrule-events&type=dev"><img src="https://david-dm.org/SerkanSipahi/david/dev-status.svg" alt="devDependency Status"></a>
</p>

### Installation

```sh
$ npm install postcss-parse-atrule-events --save
```

### Usage

#### Via Node API

```js
let result = require('postcss-parse-atrule-events').parse('code');
```

#### Example
Input:
```css
    @on load {
        @fetch my/async/styles1.css;
        @fetch my/async/styles1.css;
    }
    .my-critical-path-selector {
        width: 100px;
        height: 100px;
    }
```
Output:
```js
let output = [
     {
         attachOn: "load",
         imports: [
             "my/async/styles1.css",
             "my/async/styles1.css"
         ],
         styles: "",
         type: "on",
     },
     {
         attachOn: "immediately",
         imports: [],
         styles: ".my-critical-path-selector { width: 100px; height: 100px; }",
         type: "default",
     },
 ];
```


#### Tests
```bash
git clone https://github.com/SerkanSipahi/app-decorators.git
cd app-decorators/packages/postcss-parse-atrule-events
npm run test
```

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