wrap-range
Wraps a DOM Range instance with the specified DOM node name
Installation
$ npm install wrap-range
Example
var wrapRange = ;// create a DIV with some contentvar div = document;divinnerHTML = 'hello world';// append it to the pagedocumentbody;// create a Range instance pointing to some of the textvar range = document;range;range;// now we can "wrap" the Range with an element node type,// say U to underline in this case:var uNodes = ;assert;assert;assert;assert;