https://github.com/goatandsheep/piez
A demonstration of toggling vibrations on devices that use the browser vibration API
https://github.com/goatandsheep/piez
haptics
Last synced: about 1 year ago
JSON representation
A demonstration of toggling vibrations on devices that use the browser vibration API
- Host: GitHub
- URL: https://github.com/goatandsheep/piez
- Owner: goatandsheep
- License: mit
- Created: 2021-02-23T21:39:30.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-06-14T20:06:29.000Z (about 1 year ago)
- Last Synced: 2025-06-20T05:50:47.141Z (about 1 year ago)
- Topics: haptics
- Language: JavaScript
- Homepage: https://goatandsheep.github.io/piez/
- Size: 337 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Piez
> A library to help with persistent vibrations on mobile
[](https://www.npmjs.com/package/piez)
[](https://snyk.io/test/github/goatandsheep/piez)
[](https://codecov.io/gh/goatandsheep/piez)
[](https://github.com/xojs/xo)
[](https://www.npmjs.com/package/piez)
## Node installation
```shell
npm i piez
```
## Example
```javascript
import {
isVibrating,
startVibrate,
stopVibrate,
toggleVibrate
} from 'piez'
```
## Credit
Inspired by [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Vibration_API#continued_vibrations)
Brought to you by [beatcaps.io](https://www.beatcaps.io)