0.2.0 • Published 9 years ago

expand-selection v0.2.0

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

npm

expand-selection

Dependency Status

Add matching text to the current DOM selection.

API

expandSelection(string, [opts])

expandSelection([selection], [opts])

Searches document for string or selection.toString() and selects matching ranges.

selection defaults to window.getSelection().

Returns Selection object.

opts.clear

Clears current selection before updating. Defaults to false.

opts.ignoreCase

Whether to ignore case while attempting a match in a string. Defaults to false.

Install

npm install expand-selection

License

MIT

0.2.0

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago