dom-manipulations

Makes DOM manipulations easy.

Usage no npm install needed!

<script type="module">
  import domManipulations from 'https://cdn.skypack.dev/dom-manipulations';
</script>

README

dom-mamipulations

DOM Manipulations made easy.

Usage

/**
 * Create a DOM element
 */
var create = require('dom-manipulations/create');
// or
var create = require('dom-manipulations').create;

var link = create('link', {
    href: 'some/css/link.css',
    rel: 'stylesheet'
};

/**
 * Append one or more DOM elements
 */
var append = require('dom-manipulations/append');
// or
var append = require('dom-manipulations').append;

append(parent, child);

Contributors

License

MIT License.