range-limit
1.0.4 • Public • Published Range Limit
![npm](https://img.shields.io/npm/v/range-limit.svg)
This module exposes a single function, limit(range, bounds)
, that limits the
Range
to the contents of bounds
, a Node
.
Example
var limit = require('range-limit');
var article = document.getElementsByTagName('article');
var range = window.getSelection().getRangeAt(0);
limit(range, article);
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 1.0.4
0
Version History
Package Sidebar
Install
Weekly Downloads