Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

yields/wrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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