Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 296 Bytes

Readme.md

File metadata and controls

27 lines (16 loc) · 296 Bytes

wrap

Wrap an element.

Installation

$ component install yields/wrap

Example

var domify = require('domify');
var p = document.querySelector('p');
var div = domify('<div></div>')[0];
wrap(p, div);

API

wrap(el, wrap)

Wraps el with wrap.

License

MIT