macos-haptics
v1.0.4
Published
Native macOS trackpad haptic feedback for Node.js
Downloads
410
Maintainers
Readme
macOS Haptics
Native macOS trackpad haptic feedback for Node.js.
The package ships a prebuilt universal binary for Apple Silicon and Intel Macs.
Installation
npm install macos-hapticsFor applications that also run outside macOS, install it as an optional dependency:
npm install --save-optional macos-hapticsUsage
const haptics = require("macos-haptics");
haptics.performAlignment();Feedback is produced by the current input device when supported by macOS and the user's hardware and settings.
API
performAlignment()
Performs the standard macOS alignment feedback pattern at the system-selected time.
License
macos-haptics is released under the MIT License. See the bundled LICENSE file for details.
