# get-input-selection

> getInputSelection() provides carrot position for textarea. Works as selectionBegin and selectionEnd for all browsers

Latest version **1.1.4** (published 2016-09-10) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2016-09-10 |
| First published | 2016-06-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Yury Dymov |
| Maintainers | yury-dymov |
| Keywords | textarea, carrot, position |

## Links

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

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.1.4 (latest) — 2016-09-10
- 1.1.3 — 2016-09-10
- 1.1.2 — 2016-09-10
- 1.1.1 — 2016-09-10
- 1.1.0 — 2016-06-30
- 1.0.0 — 2016-06-30

## README

# get-input-selection

getInputSelection() provides carrot position for textarea. Works as selectionBegin and selectionEnd for all browsers

props go to http://stackoverflow.com/questions/235411/is-there-an-internet-explorer-approved-substitute-for-selectionstart-and-selecti

# usage

<code>
import getInputSelection from 'get-input-selection';

const { begin, end } = getInputSelection(textarea);
</code>

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