vibrant
stream data to the browser's vibrate()
api
example
var vibrant = vibrant
notes
data written to vibrant will be streamed unmodified
vibrant takes a number of optional arguments vibrant(pause, vibrate, timeout)
pause
: the default time to pause after a vibration sequence if none is specified. (defaults to 0)vibrate
: the function to call to handle vibration, may be passed an array or a number. (defaults tonavigator.vibrate || navigator.mozVibrate
)timeout
: the function used to schedule vibration. (defaults tosetTimeout
)
license
MIT