Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/syarul/html-inject-vdom
- Owner: syarul
- License: mit
- Created: 2017-09-14T09:57:40.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-14T10:05:33.000Z (about 7 years ago)
- Last Synced: 2024-08-08T15:47:26.863Z (3 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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:
hello
```html
hello
```
output:
```html
```### cli
```bash
cat index.html | htmlinjectvdom "app" > output.html
```### Gotcha:
requires a head tag to be present in the src.