textwrench-observer
v4.46.0
Published
Cross-platform (Mac/Win) library to get OS-level text selection, process it, and paste automatically.
Maintainers
Readme
text-observer
A cross-platform (Mac/Windows) library for observing OS-level text selections, processing text, updating clipboard, and automatic pasting.
🚀 Features
- Real-time OS-level text selection observing.
- Automatic clipboard updating and pasting.
- Easy Node.js integration with Electron and standard Node apps.
📦 Installation
npm install text-observer🛠 Usage
const { startSelectionObserver } = require('text-observer');
startSelectionObserver((selection, paste) => {
console.log('Text selected:', selection.text);
const processedText = selection.text.toUpperCase();
paste(processedText);
});🖥 Supported Platforms
macOS ✅ Fully supported Windows 🟡 Coming soon
