An open API service indexing awesome lists of open source software.

https://github.com/ratson/posthtml-insert

PostHTML plugin to insert content after HTML tag.
https://github.com/ratson/posthtml-insert

html posthtml posthtml-plugin

Last synced: about 1 year ago
JSON representation

PostHTML plugin to insert content after HTML tag.

Awesome Lists containing this project

README

          

# posthtml-insert

PostHTML plugin to insert content after HTML tag.

## Installation

```
npm install posthtml-insert --save
```

## Usage

```js
const posthtml = require('posthtml')
const insert = require('posthtml-insert')

posthtml([insert({ selector: 'body', content: '

test
' })])
.process('')
.then(({ html }) => {
console.log(html)
// => '
test
'
})
```