Socket
Book a DemoInstallSign in
Socket

rand-dom

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

rand-dom

Get random DOM elements!

latest
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

rand-dom

Gives you a rand-dom.

var randDom = require('rand-dom');
randDom.elm.innerHTML = `I'm a ${randDom}.tag`;
// Can decide your logic based on the tag.
document.body.appendChild(randDom.elm);

API

Basically it returns you an object that contains:

{
  elm // Random element that was created.
  tag // HTML Tag
}

Install

$ npm install --save rand-dom

Keywords

dom

FAQs

Package last updated on 30 Jan 2015

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