Get the text selected by the cursor. Node.js binding of the awesome Selection rust crate.
npm i @selection-rs/selection
yarn add @selection-rs/selection
pnpm add @selection-rs/selection
import { getText } from "@selection-rs/selection";
console.log(getText());
- Original crate: Selection, modified to be used as a Node.js binding.
GPLv3