@selection01/rs
v1.1.0
Published
Get the text selected by the cursor. Node.js binding of the awesome [Selection](https://github.com/pot-app/Selection) rust crate.
Downloads
3
Readme
@selection-rs/selection
Get the text selected by the cursor. Node.js binding of the awesome Selection rust crate.
Installation
npm i @selection-rs/selection
yarn add @selection-rs/selection
pnpm add @selection-rs/selection
Usage
import { getText } from "@selection-rs/selection";
console.log(getText());
Credits
- Original crate: Selection, modified to be used as a Node.js binding.
License
GPLv3