首页 开发技术 其它     /    web-push:用于Node.js的WebPush库-源码

web-push:用于Node.js的WebPush库-源码

上传者: weixin_42144707 | 上传时间:2025/2/19 18:31:49 | 文件大小:127KB | 文件类型:ZIP
web-push:用于Node.js的WebPush库-源码
网络推送为什么Web推送要求通过完成从后端触发的推送消息,如果要与推送消息一起发送数据,则还必须根据对数据进行。
该模块使发送消息变得容易,还将处理对依赖GCM进行消息发送/传递的浏览器的旧支持。
安装安装很简单,只需通过npm安装即可。
npminstallweb-push--save用法该库的常见用例是使用GCMAPI密钥和VAPID密钥的应用服务器。
constwebpush=require('web-push');//VAPIDkeysshouldonlybegeneratedonlyonce.constvapidKeys=webpush.generateVAPIDKeys();webpush.setGCMAPIKey('');webpush. 本软件ID:15492133

文件下载

资源详情

[{"title":"(35个子文件127KB)web-push:用于Node.js的WebPush库-源码","children":[{"title":"web-push-master","children":[{"title":".gitignore <span style='color:#111;'>37B</span>","children":null,"spread":false},{"title":".renovaterc.json <span style='color:#111;'>74B</span>","children":null,"spread":false},{"title":".eslintrc <span style='color:#111;'>524B</span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'>1.67KB</span>","children":null,"spread":false},{"title":"ISSUE_TEMPLATE.md <span style='color:#111;'>1.01KB</span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'>344.90KB</span>","children":null,"spread":false},{"title":"src","children":[{"title":"web-push-error.js <span style='color:#111;'>388B</span>","children":null,"spread":false},{"title":"cli.js <span style='color:#111;'>2.76KB</span>","children":null,"spread":false},{"title":"vapid-helper.js <span style='color:#111;'>6.87KB</span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'>771B</span>","children":null,"spread":false},{"title":"encryption-helper.js <span style='color:#111;'>1.60KB</span>","children":null,"spread":false},{"title":"web-push-constants.js <span style='color:#111;'>179B</span>","children":null,"spread":false},{"title":"web-push-lib.js <span style='color:#111;'>12.30KB</span>","children":null,"spread":false}],"spread":true},{"title":".travis.yml <span style='color:#111;'>666B</span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'>228B</span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'>15.50KB</span>","children":null,"spread":false},{"title":".npmignore <span style='color:#111;'>82B</span>","children":null,"spread":false},{"title":"test","children":[{"title":".eslintrc <span style='color:#111;'>97B</span>","children":null,"spread":false},{"title":"data","children":[{"title":"certs","children":[{"title":"cert.pem <span style='color:#111;'>2.16KB</span>","children":null,"spread":false},{"title":"example_ec_key.pem <span style='color:#111;'>130B</span>","children":null,"spread":false},{"title":"example_ec_public_key.pem <span style='color:#111;'>178B</span>","children":null,"spread":false},{"title":"example_ec_key_with_public_key.pem <span style='color:#111;'>227B</span>","children":null,"spread":false}],"spread":false},{"title":"demo","children":[{"title":"service-worker.js <span style='color:#111;'>626B</span>","children":null,"spread":false},{"title":"index.html <span style='color:#111;'>1.76KB</span>","children":null,"spread":false},{"title":"manifest.json <span style='color:#111;'>186B</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"test-encryption-helper.js <span style='color:#111;'>2.89KB</span>","children":null,"spread":false},{"title":"test-generate-request-details.js <span style='color:#111;'>9.68KB</span>","children":null,"spread":false},{"title":"testSetGCMAPIKey.js <span style='color:#111;'>866B</span>","children":null,"spread":false},{"title":"helpers","children":[{"title":"download-test-browsers.js <span style='color:#111;'>1.13KB</span>","children":null,"spread":false},{"title":"create-server.js <span style='color:#111;'>1.43KB</span>","children":null,"spread":false}],"spread":false},{"title":"test-vapid-helper.js <span style='color:#111;'>7.87KB</span>","children":null,"spread":false},{"title":"test-cli.js <span style='color:#111;'>5.79KB</span>","children":null,"spread":false},{"title":"testSendNotification.js <span style='color:#111;'>25.07KB</span>","children":null,"spread":false},{"title":"testSelenium.js <span style='color:#111;'>9.42KB</span>","children":null,"spread":false},{"title":"test-set-vapid-details.js <span style='color:#111;'>2.90KB</span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明