Package Exports
- haptic-feedback-swift
 - haptic-feedback-swift/dist/index.js
 
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (haptic-feedback-swift) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
HapticFeedback in Swift
Generate haptic feedback on the trackpad without delay in MacOS via NodeJS.
Installation
  npm i haptic-feedback-swiftExample
  const { HapticFeedback } = require('haptic-feedback-swift')
  const hapticFeedback = new HapticFeedback()
  
  //Trigger
  hapticFeedback.trigger()
  //Feedback Pattern: NSHapticFeedbackManager.FeedbackPattern
  hapticFeedback.trigger('alignment')
  //Example
  while(true) {
      hapticFeedback.trigger('levelChange')
  }Documentation
developer.apple.com - NSHapticFeedbackManager.FeedbackPattern