{"_id":"@8v/pushplus","name":"@8v/pushplus","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.4":{"name":"@8v/pushplus","version":"0.1.4","repository":{"type":"git","url":"git+https://github.com/i18n-site/deno.git"},"homepage":"https://github.com/i18n-site/deno/tree/dev/pushplus","author":{"name":"i18n.site@gmail.com"},"license":"MulanPSL-2.0","exports":{".":"./mod.js","./*":"./*"},"scripts":{},"type":"module","dependencies":{"@8v/curl":"^0.1.7"},"_id":"@8v/pushplus@0.1.4","description":"[Github Repo](https://github.com/i18n-site/deno/tree/dev/pushplus)","bugs":{"url":"https://github.com/i18n-site/deno/issues"},"_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-Cd/jOq92F6lvlm21lWeGu+trTImpu1fTN3TMl/9kSiZJQQevstzz+NJF0LXrSm86294G2rctkOvjx+TDDsEXMw==","shasum":"b3f674caa6655e9de38358df46340a77c86649b3","tarball":"https://registry.npmjs.org/@8v/pushplus/-/pushplus-0.1.4.tgz","fileCount":3,"unpackedSize":3601,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC88YxhU+sdQSJMYISjhPRyMEEqPBlWnCS5vGDiaW92owIhAMzpf9n5oVdIA+sMd+idBOlVoRcRvWjmWBbVdV7JEC6V"}]},"_npmUser":{"name":"i18n-now","email":"i18n.site@gmail.com"},"directories":{},"maintainers":[{"name":"i18n-now","email":"i18n.site@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pushplus_0.1.4_1763264181583_0.18854436572125066"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-16T03:36:21.360Z","0.1.4":"2025-11-16T03:36:21.776Z","modified":"2025-11-16T03:36:22.133Z"},"maintainers":[{"name":"i18n-now","email":"i18n.site@gmail.com"}],"description":"[Github Repo](https://github.com/i18n-site/deno/tree/dev/pushplus)","homepage":"https://github.com/i18n-site/deno/tree/dev/pushplus","repository":{"type":"git","url":"git+https://github.com/i18n-site/deno.git"},"author":{"name":"i18n.site@gmail.com"},"bugs":{"url":"https://github.com/i18n-site/deno/issues"},"license":"MulanPSL-2.0","readme":"[Github Repo](https://github.com/i18n-site/deno/tree/dev/pushplus)\n\n## Usage\n\n```js\n#!/usr/bin/env bun\n\nimport pushplus from \"./mod.js\";\nimport { PUSHPLUS, PUSHPLUS_TOPIC } from \"../../../js0/conf/status/NOTIFY.js\";\n\nconst send = pushplus(PUSHPLUS, PUSHPLUS_TOPIC);\nawait send(\"测试\", \"正文\");\n```\n\n## Code\n\n[`mod.js`](./mod.js)\n\n```js\nimport curl from \"@8v/curl/cJson.js\";\n\n/*\ntoken 是 body 无 用户令牌或消息令牌\nchannel 否 body wechat 发送渠道\ntitle 否 body 无 消息标题\ntopic 否 body 无 群组编码\ncontent 是 body 无 具体消息内容，根据不同template支持不同格式\n*/\n\nexport default (token, topic) => {\n  const conf = {\n    token,\n    topic,\n    template: \"txt\",\n  };\n  return (title, content = \"\", url = \"\") => {\n    if (url) {\n      content += \"\\n\" + url;\n    }\n    return Promise.all(\n      [\"wechat\", \"extension\"].map((channel) => {\n        curl(\"https://www.pushplus.plus/send\", {\n          method: \"PUT\",\n          body: JSON.stringify({\n            title,\n            content,\n            channel,\n            ...conf,\n          }),\n        });\n      }),\n    );\n  };\n};\n```\n\n## About\n\n## About\n\nThis project is an open-source component of\n[i18n.site ⋅ Internationalization Solution](https://i18n.site).\n\n- [i18 : MarkDown Command Line Translation Tool](https://i18n.site/i18)\n\n  The translation perfectly maintains the Markdown format.\n\n  It recognizes file changes and only translates the modified files.\n\n  The translated Markdown content is editable; if you modify the original text\n  and translate it again, manually edited translations will not be overwritten\n  (as long as the original text has not been changed).\n\n- [i18n.site : MarkDown Multi-language Static Site Generator](https://i18n.site/i18n.site)\n\n  Optimized for a better reading experience\n\n## 关于\n\n本项目为 [i18n.site ⋅ 国际化解决方案](https://i18n.site) 的开源组件。\n\n- [i18 : MarkDown命令行翻译工具](https://i18n.site/i18)\n\n  翻译能够完美保持 Markdown 的格式。能识别文件的修改，仅翻译有变动的文件。\n\n  Markdown\n  翻译内容可编辑；如果你修改原文并再次机器翻译，手动修改过的翻译不会被覆盖（如果这段原文没有被修改）。\n\n- [i18n.site : MarkDown多语言静态站点生成器](https://i18n.site/i18n.site)\n  为阅读体验而优化。\n","readmeFilename":"README.md","_rev":"1-2414313c280a2d498912f3afbf86b717"}