{"_id":"@awesome-cordova-library/vibration","_rev":"2-b302ff396e08b636b461826d97cb91d7","name":"@awesome-cordova-library/vibration","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@awesome-cordova-library/vibration","version":"1.0.0","description":"This plugin provides a way to vibrate the device. Its API aligns with the W3C vibration specification at http://www.w3.org/TR/vibration/","main":"lib/index.js","types":"lib/index.d.ts","keywords":["cordova","capacitor","ionic","javascript","mobile","vibration"],"publishConfig":{"access":"public"},"author":{"name":"Jordan AZOULAY","email":"jazoulay@joazco.com","url":"https://github.com/joazco"},"license":"SEE LICENSE IN LICENSE","repository":{"type":"git","url":"git://github.com/joazco/awesome-cordova-library.git"},"bugs":{"url":"https://github.com/joazco/awesome-cordova-library/issues"},"homepage":"https://github.com/joazco/awesome-cordova-library","devDependencies":{"@types/jest":"^27.5.1","@types/react":"~17.0.21","jest":"^28.1.0","prettier":"^2.6.2","ts-jest":"^28.0.3","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.7.2"},"scripts":{"build":"rm -rf lib/ && tsc","build-yalc":"npm run build; yalc publish --push --private","test":"jest --config jestconfig.json","format":"prettier --write \"src/**/*.ts\"","lint":"tslint -p tsconfig.json","repo:publish":"npm run build; npm publish --access public"},"directories":{"lib":"lib"},"dependencies":{},"_id":"@awesome-cordova-library/vibration@1.0.0","_nodeVersion":"14.15.1","_npmVersion":"8.5.2","dist":{"integrity":"sha512-EhWh5cYaQ3OINZn7zm0BCAk+mMNnTomfPb2s5tplbxGjJ6yg8QD00mcRP3XY5nssDE+fr0lxadpHZZtsFf7b2w==","shasum":"01d34cabcb69e4de0869fb8dcc3fe14c70b4bbd0","tarball":"https://registry.npmjs.org/@awesome-cordova-library/vibration/-/vibration-1.0.0.tgz","fileCount":7,"unpackedSize":6760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH2D7Gv0ZEN/xO/1dYPy5DTdHGPUn/O+f6UfstQ5NvSeAiEAjq/SGPz4A87oDfKEMdRu7i8idh/lcr4zdLopOLz1gt8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJilh8mACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrf/w/+POMtLEdKg+Q4lSW8AUdHgnh1J/wN0WiISgEs6XQfPKJodi9U\r\nEAIyHK3mHRj/j9erPf9JEScz9aS1DspkAG1pA7XJjUSVh/GAboPGbLhc57e2\r\n9aftgMIDXCHYE3D6Xi+Mc5FYzGRvWuyEPT/UeVmhzeSGELtEd4msF6p2JXX+\r\ncX0m1/YDQANut3d8okD1EIQaZ3KKem4Ef3o8qFXztOC7llscmi5z08H4unW6\r\nBjZ6xHYEmwIXi7QTv9Re6pkkxrBWZ7wrqoKV5JgwZgL5jYVPwGKhUWtl6czb\r\ns3uYPyfybIpzu1CQTJBzra9DXux3YWEQUR7gAE7CQArDTB/JmD+FxCktf9fu\r\ndeTyfUhOj/8z8MOhOwQtvm+choreayeiJRsNkRWgZzq74pL+ntm6LypBJB+1\r\nHPTiVkHZGGJZI2YTMkIgn/LFs44fbJXHZW9H0wYuDNy2L7EJaGmKbDR7O5Xa\r\nvE8fW1ihSqo+8F6hDEum+MrS7SVUnL/IIiPRdvf8DS5ZQ2ThG2kTAeTXgEXp\r\nk8KcilbJmsG6GLShEN9VYG5g3kCBj0OA49QhDtVFeNszuqyYTf997K5jXTbg\r\nnFBbMW958OxtpB3m88+tBMAQVuzuUAUZsaYvtTqzq+Eir6prUQbqINZIWRao\r\nQZHhNV09k+6Wfbt1eMGhqcPkHF6CupvuIew=\r\n=aO1M\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"joazco","email":"jazoulay@joazco.com"},"maintainers":[{"name":"joazco","email":"jazoulay@joazco.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vibration_1.0.0_1654005541974_0.4632742448664484"},"_hasShrinkwrap":false},"1.0.1":{"name":"@awesome-cordova-library/vibration","version":"1.0.1","description":"This plugin provides a way to vibrate the device. Its API aligns with the W3C vibration specification at http://www.w3.org/TR/vibration/","main":"lib/index.js","types":"lib/index.d.ts","keywords":["cordova","capacitor","ionic","javascript","mobile","vibration"],"publishConfig":{"access":"public"},"author":{"name":"Jordan AZOULAY","email":"jazoulay@joazco.com","url":"https://github.com/joazco"},"license":"SEE LICENSE IN LICENSE","repository":{"type":"git","url":"git://github.com/joazco/awesome-cordova-library.git"},"bugs":{"url":"https://github.com/joazco/awesome-cordova-library/issues"},"homepage":"https://github.com/joazco/awesome-cordova-library","devDependencies":{"@types/jest":"^27.5.1","@types/react":"~17.0.21","jest":"^28.1.0","prettier":"^2.6.2","ts-jest":"^28.0.3","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.7.2"},"scripts":{"build":"rm -rf lib/ && tsc","build-yalc":"npm run build; yalc publish --push --private","test":"jest --config jestconfig.json","format":"prettier --write \"src/**/*.ts\"","lint":"tslint -p tsconfig.json","repo:pre:publish":"npm run format; npm run lint; npm test","repo:publish":"npm run build; npm publish --access public"},"directories":{"lib":"lib"},"dependencies":{},"_id":"@awesome-cordova-library/vibration@1.0.1","_nodeVersion":"14.15.1","_npmVersion":"8.5.2","dist":{"integrity":"sha512-yQT6/ra8dcjm0DIyYMuHC73h0HkdpLCpe+b376kJnemX+QR2Z7JvM1jRkU6goYLpXoBO3i0a+XiTIn79Ek67og==","shasum":"a2763daf8fc7f932d7a53cc4205019adae75849a","tarball":"https://registry.npmjs.org/@awesome-cordova-library/vibration/-/vibration-1.0.1.tgz","fileCount":7,"unpackedSize":7092,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZWxdcrMjdir0tM3rsy1mHh3UkWHoQppyJrHy79KlCBwIhAMkgTQrStoyqzL1fTurN8OsM9xsOPpokIMXoOZw+v1pV"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJilizzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoxIxAAjXj5TurcrrrOmfzhZDyEBKBKqKeTALrp7LEODeTw/YgRvPpe\r\nws4Mojrsc9m7GpjN0iKfI0MChDbvFIKPgubt8sU0fCXYSDF+UMhVjDkpTc7M\r\nMilYKjZhtwehLo6dWo5qHt+SrnqcXRZ+lWGziyQ+Xo4If2ACDXaO8Zav9cev\r\niKdz6WGRtJvgkW0QqWxtc3YpqJXRjwrl0sSsyksMdB2xsr+s7jFEXyc2wvPR\r\nnqpCTts4S7IqmiOAwW41jfKSqe+HhLPV2v7kMedyZSF7H6kAfqBhCxI7qfkK\r\nbsywlBhn9JnzbEvNjUbwzBbLyjM4bWg8HKyJr8n14lb5oFnEMC5l72VPP51T\r\n7kFp+j3+jKk5rD+832Wqd2lgw3JuJ2q8/WbaoUw1UZYGojW+T0QX3A+C16+F\r\nBhWk20DX0DLMhcMDxtzP2AqpKf8eJGugjsIfeJEdEWaO+qfyjZDbY7lbU2gw\r\nT9mN3L8vk88DpYkoiEDoH0C2BXY1s7oxTuYD3cl+RhIOh6uYoJXIaAYuQYUn\r\nSMSnaDLd+qlge7y7ES15zmtYOctfrYxbR1Jczhxc+Gx7RrcEuiD4uKQeF34Q\r\nS+ZRTwUYVHk4EoGa7iv39Tca6+DpmcDic3vPxBuHxyqQ5gLMJhPsYQ176EsQ\r\nLZdiFNqmW25NhV0mnFb2mE3vMd0F6mqfz+0=\r\n=zV+l\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"joazco","email":"jazoulay@joazco.com"},"maintainers":[{"name":"joazco","email":"jazoulay@joazco.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vibration_1.0.1_1654009075667_0.9160009507299485"},"_hasShrinkwrap":false},"1.0.2":{"name":"@awesome-cordova-library/vibration","version":"1.0.2","description":"This plugin provides a way to vibrate the device. Its API aligns with the W3C vibration specification at http://www.w3.org/TR/vibration/","main":"lib/index.js","types":"lib/index.d.ts","keywords":["cordova","capacitor","ionic","javascript","mobile","vibration"],"publishConfig":{"access":"public"},"author":{"name":"Jordan AZOULAY","email":"jazoulay@joazco.com","url":"https://github.com/joazco"},"license":"SEE LICENSE IN LICENSE","repository":{"type":"git","url":"git://github.com/joazco/awesome-cordova-library.git"},"bugs":{"url":"https://github.com/joazco/awesome-cordova-library/issues"},"homepage":"https://github.com/joazco/awesome-cordova-library","devDependencies":{"@types/jest":"^27.5.1","@types/react":"~17.0.21","jest":"^28.1.0","prettier":"^2.6.2","ts-jest":"^28.0.3","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.7.2"},"scripts":{"build":"rm -rf lib/ && tsc","build-yalc":"npm run build; yalc publish --push --private","test":"jest --config jestconfig.json","format":"prettier --write \"src/**/*.ts\"","lint":"tslint -p tsconfig.json","prepublish":"npm run format; npm run lint; npm test; npm run build"},"directories":{"lib":"lib"},"dependencies":{},"gitHead":"2a2b9cf007a870056251632315547e6a651d26a0","_id":"@awesome-cordova-library/vibration@1.0.2","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-gRyW/G/56whx3Q9+Dfb3pI/8a4G4wWUrXVoWdq1cPbQwfOGiJNGbQo67LEuvY0nr5qZ7Z9VDjvWZq7F1hCak0w==","shasum":"68e2036d1a15ca906e20a9ddfb409c7c717013b4","tarball":"https://registry.npmjs.org/@awesome-cordova-library/vibration/-/vibration-1.0.2.tgz","fileCount":7,"unpackedSize":7410,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYniusynvR3Tm9U9d9I4O7HKtedzIOMwRsaMnSzgtXzAIhALhUE0MgamPEl1hmMKoVqXEUL5p9QOiJEk1sOI46Fyd0"}]},"_npmUser":{"name":"joazco","email":"jazoulay@joazco.com"},"maintainers":[{"name":"joazco","email":"jazoulay@joazco.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vibration_1.0.2_1694499646722_0.6228882372184295"},"_hasShrinkwrap":false}},"time":{"created":"2022-05-31T13:59:01.909Z","1.0.0":"2022-05-31T13:59:02.235Z","modified":"2023-09-12T06:20:47.145Z","1.0.1":"2022-05-31T14:57:55.844Z","1.0.2":"2023-09-12T06:20:46.926Z"},"maintainers":[{"name":"joazco","email":"jazoulay@joazco.com"}],"description":"This plugin provides a way to vibrate the device. Its API aligns with the W3C vibration specification at http://www.w3.org/TR/vibration/","homepage":"https://github.com/joazco/awesome-cordova-library","keywords":["cordova","capacitor","ionic","javascript","mobile","vibration"],"repository":{"type":"git","url":"git://github.com/joazco/awesome-cordova-library.git"},"author":{"name":"Jordan AZOULAY","email":"jazoulay@joazco.com","url":"https://github.com/joazco"},"bugs":{"url":"https://github.com/joazco/awesome-cordova-library/issues"},"license":"SEE LICENSE IN LICENSE","readme":"---\nid: plugin-vibration\ntitle: Vibration\ntags:\n  - cordova\n  - capacitor\n  - ionic\n  - javascript\n  - typescript\n  - plugin\n  - mobile\n  - vibration\n---\n\n# Vibration\n\nThis plugin provides a way to vibrate the device. Its API aligns with the W3C vibration specification at\n\n[Online documentation](https://awesomecordovalibrary.com)\n\n[Cordova documentation](https://cordova.apache.org/docs/en/11.x/reference/cordova-plugin-vibration/index.html)\n\n[W3C documentation](http://www.w3.org/TR/vibration/)\n\n## Installation\n\n### Cordova\n\n```sh\ncordova plugin add cordova-plugin-vibration\nnpm install @awesome-cordova-library/vibration\n```\n\n### Capacitor / Ionic\n\n```bash\nnpm install cordova-plugin-vibration\nnpm install @awesome-cordova-library/vibration\nnpx cap sync\n```\n\n## Vanilla\n\n### Declaration\n\n```typescript\nclass Vibration {\n  static vibrate(time: number | number[]): void;\n}\n```\n\n### Usages\n\n```typescript\nimport Vibration from \"@awesome-cordova-library/vibration\";\n\n// Vibrate for 3 seconds\nVibration.vibrate(3000);\n\n// Vibrate for 3 seconds\nVibration.vibrate([3000]);\n```\n\n## React\n\n### Declaration\n\n```typescript\nconst useVibration: () => (time: number | number[]) => void;\n```\n\n### Usages\n\n```typescript\nimport { useEffect } from \"react\";\nimport useVibration from \"@awesome-cordova-library/vibration/lib/react\";\n\nfunction App() {\n  const vibrate = useVibration();\n\n  useEffect(() => {\n    // Vibrate for 1 second\n    // Wait for 1 second\n    // Vibrate for 3 seconds\n    // Wait for 1 second\n    // Vibrate for 5 seconds\n    vibrate([1000, 1000, 3000, 1000, 5000]);\n  }, []);\n\n  return <div />;\n}\n```\n\n## Quirks\n\nMulitple vibration not supported on iOS\n","readmeFilename":"README.md"}