Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

DemocracyOS/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

Packages

No packages published

Languages

  • JavaScript 62.5%
  • Makefile 37.5%