Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/syarul/html-inject-vdom

Transform stream for injecting virtual DOM tags into html.
https://github.com/syarul/html-inject-vdom

Last synced: 3 days ago
JSON representation

Transform stream for injecting virtual DOM tags into html.

Awesome Lists containing this project

README

        

# html-inject-vdom

Transform stream for injecting virtual DOM tags into html.

### example:

```js
var injectVdom = require('html-inject-vdom')

process.stdin
.pipe( injectVdom(['app', 'tabs']) )
.pipe( process.stdout )
```

input:
```html
hello
```
output:
```html

hello
```

### cli

```bash
cat index.html | htmlinjectvdom "app" > output.html
```

### Gotcha:
requires a head tag to be present in the src.