Skip to content

hemanth/rand-dom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rand-dom Build Status

Creates a random DOM element.

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

About

Creates a random DOM element!

Resources

Stars

Watchers

Forks

Packages

No packages published