Open WeeJeWel opened 6 months ago
This is a feature requests for a class-based update of this amazing library.
For example:
import { WebPush } from 'web-push'; const webPush = new WebPush(); webpush.setVapidDetails(...); webpush.sendNotification(...);
This will allow for using multiple credentials in a single Node.js server. It also feels like cleaner code in my opinion.
@WeeJeWel I made some minimal changes to allow that in #889
Very nice! 🙌🏻
This is a feature requests for a class-based update of this amazing library.
For example:
This will allow for using multiple credentials in a single Node.js server. It also feels like cleaner code in my opinion.