/selection-rs

Selection binding for Node.js

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

@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