# get-selection-range

> > Get cursor's selection range.

Latest version **0.1.0** (published 2018-04-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-selection-range
pnpm add get-selection-range
yarn add get-selection-range
bun add get-selection-range
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-04-13 |
| First published | 2018-04-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | chilijung |
| Maintainers | chilijung |

## Links

- npm: https://www.npmjs.com/package/get-selection-range
- Repository: https://github.com/Canner/get-selection-range
- Homepage: https://github.com/Canner/get-selection-range#readme
- Issues: https://github.com/Canner/get-selection-range/issues
- npm.io page: https://npm.io/package/get-selection-range

## Recent versions

- 0.1.0 (latest) — 2018-04-13

## README

# get-selection-range [![NPM version][npm-image]][npm-url]  [![Dependency Status][daviddm-image]][daviddm-url]
> Get cursor's selection range.

## Installation

```sh
$ npm install --save get-selection-range
```

## Usage

```js
var getSelectionRange = require('get-selection-range');

// get visible selection range
getSelectionRange.getVisibleSelectionRect();

// get collpase selection range
getSelectionRange.getCollapsedClientRect()
```

## License

MIT © [chilijung]()


[npm-image]: https://badge.fury.io/js/get-selection-range.svg
[npm-url]: https://npmjs.org/package/get-selection-range
[travis-image]: https://travis-ci.org/Canner/get-selection-range.svg?branch=master
[travis-url]: https://travis-ci.org/Canner/get-selection-range
[daviddm-image]: https://david-dm.org/Canner/get-selection-range.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/Canner/get-selection-range

---
_Source: https://npm.io/package/get-selection-range · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
