Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
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 220 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.