npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

rand-dom

2.0.0

@hemanth

npmHomeSnykSocket
Downloads:4
$ npm install rand-dom
DailyWeeklyMonthlyYearly

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