@takebox-ai/modifiers-napi
v0.1.0
Published
Keyboard modifier key state for Haijun Code (Juglow ecosystem). Safe no-op outside macOS.
Maintainers
Readme
@takebox-ai/modifiers-napi
Keyboard modifier key state for Haijun Code (Juglow ecosystem).
- Repository: https://github.com/takebox/modifiers-napi
- Package: https://www.npmjs.com/package/@takebox-ai/modifiers-napi
- Docs: https://raw.haijun.my.id/docs/
Install
npm install @takebox-ai/modifiers-napiUsage
const { prewarm, isModifierPressed } = require('@takebox-ai/modifiers-napi');
prewarm(); // no-op outside macOS, never throws
isModifierPressed('shift'); // false outside macOSAPI
prewarm(): void
Pre-warm the native module by loading it in advance. Safe no-op outside macOS.
isModifierPressed(modifier): boolean
Check if a specific modifier key (shift | command | control | option) is currently pressed. Always returns false outside macOS.
License
MIT — Juglow ecosystem. See commercial terms.
