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

@cloudcmd/create-element

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudcmd/create-element

create dom element

latest
Source
npmnpm
Version
2.0.2
Version published
Weekly downloads
1K
0.38%
Maintainers
1
Weekly downloads
 
Created
Source

create-element License NPM version Dependency Status Build Status Coverage

Create DOM element.

Install

npm i @cloudcmd/create-element

API

const createElement = require('@cloudcmd/create-element');

// create DOM-element with no attributes
const div = createElement('div');

// add innerHTML
const el = createElement('div', {
    notAppend: false, // default
    parent: document.body, // default
    uniq: true, // default
    innerHTML: '<span></span>',
    className: 'abc',
});

// load css
const el = createElement('link', {
    rel: 'stylesheet',
    href: '/style.css',
    parent: document.head,
});

License

MIT

Keywords

create

FAQs

Package last updated on 25 Mar 2020

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