🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

html-inject-vdom

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-inject-vdom

Transform stream for injecting virtual DOM tags into html.

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
5
400%
Maintainers
1
Weekly downloads
 
Created
Source

html-inject-vdom

Transform stream for injecting virtual DOM tags into html.

example:

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

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

input:

<html><head></head><body>hello</body></html>

output:

<html><head></head><body><div id="app"></div><div id="tabs"></div>hello</body></html>

cli

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

Gotcha:

requires a head tag to be present in the src.

Keywords

inject

FAQs

Package last updated on 14 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts