piez
Version:
Simple mobile browser library for toggling vibration.
32 lines (23 loc) • 959 B
Markdown
# 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)