https://github.com/devinus/posthtml-when
PostHTML plugin for conditional plugins
https://github.com/devinus/posthtml-when
Last synced: 4 months ago
JSON representation
PostHTML plugin for conditional plugins
- Host: GitHub
- URL: https://github.com/devinus/posthtml-when
- Owner: devinus
- License: cc0-1.0
- Created: 2016-02-05T18:02:10.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T16:44:57.000Z (over 3 years ago)
- Last Synced: 2025-10-12T14:59:53.821Z (8 months ago)
- Language: JavaScript
- Size: 156 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# posthtml-when
[](https://travis-ci.org/devinus/posthtml-when)
[](https://coveralls.io/github/devinus/posthtml-when?branch=master)
[](https://badge.fury.io/js/posthtml-when)
[](https://david-dm.org/devinus/posthtml-when)
[](https://david-dm.org/devinus/posthtml-when?type=dev)
[PostHTML][1] plugin for conditional plugins.
## Usage
```js
var posthtml = require('posthtml');
var when = require('posthtml-when');
posthtml()
.use(when(conditional, plugin()));
```
[1]: https://github.com/posthtml/posthtml