DOM Manipulations made easy.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
append.js
create.js
index.js
package.json

README.md

dom-mamipulations

DOM Manipulations made easy.

Installation

npm install dom-manipulations

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.