Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
stream timings to the browser's vibrate api
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

vibrant

Build Status npm install

stream data to the browser's vibrate() api

example

var vibrant = require('vibrant')()

vibrant.write([1000, 1000])

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 to navigator.vibrate || navigator.mozVibrate)
  • timeout: the function used to schedule vibration. (defaults to setTimeout)

license

MIT

Something went wrong with that request. Please try again.