Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
convert-vapid-public-key
Advanced tools
[![GitHub Actions status](https://github.com/screendriver/convert-vapid-public-key/workflows/CI/badge.svg)](https://github.com/screendriver/convert-vapid-public-key/actions) [![codecov](https://codecov.io/gh/screendriver/convert-vapid-public-key/branch/ma
To subscribe to Web Push Notifications you have to provide an Base64 application server key that needs to be converted to an Uint8Array. This package helps you with the conversion from a Base64 string to an Uint8Array
.
$ npm install --save convert-vapid-public-key
or if you use Yarn 🐈
$ yarn add convert-vapid-public-key
import convertVapidKey from "convert-vapid-public-key";
async function subscribe() {
const registration = await navigator.serviceWorker.register("service-worker.js");
const subscribeOptions = {
userVisibleOnly: true,
applicationServerKey: convertVapidKey("<your-base64-vapid-public-key>"),
};
const pushSubscription = await registration.pushManager.subscribe(subscribeOptions);
// ...
}
#301
#298
#288
#291
#261
#258
#245
d10f4a7
72ebcc2
c0ccae2
FAQs
[![GitHub Actions status](https://github.com/screendriver/convert-vapid-public-key/workflows/CI/badge.svg)](https://github.com/screendriver/convert-vapid-public-key/actions) [![codecov](https://codecov.io/gh/screendriver/convert-vapid-public-key/branch/ma
The npm package convert-vapid-public-key receives a total of 218 weekly downloads. As such, convert-vapid-public-key popularity was classified as not popular.
We found that convert-vapid-public-key demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.