New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

pophtml

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pophtml

Get input and populate HTML. Pure JS. Only demo purposes. The code I re-write every time.

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

popHTML

GGet input and populate HTML. Pure JS. Only demo purposes. The small code snippets I re-write every time to create quick browser demos.

NPM version NPM downloads MIT License

Use

<!-- HEAD-tag -->
<script src="https://cdn.jsdelivr.net/npm/pophtml@0.0.1/index.min.js"></script>

<!-- BODY-tag -->
<button id="button">Click me</button>
<div id="populateElement"></div>
document.getElementById('button').onclick = function () {
  popHTML('some text to populate tag with', { tagToPop: 'populateElement', tagToPopWith: 'div', append: true })
}

Keywords

demo

FAQs

Package last updated on 20 Nov 2022

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