Sometimes I want to set a proxy or TTL when sending a notification, but it's inconvient to call webpush.sendNotification
with option parameter every time. What about adding a function like webpush.setConfig
?
btw, export the WebPushLib
itself to allow users to initialize multiple instances might be useful for some users.