1.0.4 • Published 9 years ago

range-limit v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Range Limit

Build Status Coverage Status npm

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);
1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago