diff --git a/Miscellaneous/SnoreToast.md b/Miscellaneous/SnoreToast.md new file mode 100644 index 0000000..f0ef5ca --- /dev/null +++ b/Miscellaneous/SnoreToast.md @@ -0,0 +1,25 @@ +# win系统弹窗 + +## install +```cmd +npm install --save node-notifier +``` + + +## how2use +```js +const WindowsToaster = require('node-notifier').WindowsToaster // 弹框通知库 +let notifier = new WindowsToaster({ // 配置SnoreToast + withFallback: false, + customPath: './snoretoast.exe' +}); + +notifier.notify({ + title: '这是标题', + message: '这是内容!!', + icon: './cherry1.png' +}, +function (error, response) { + console.log(response) +}); +``` \ No newline at end of file diff --git a/Miscellaneous/snoretoast.exe b/Miscellaneous/snoretoast.exe new file mode 100644 index 0000000..1a71c72 Binary files /dev/null and b/Miscellaneous/snoretoast.exe differ diff --git a/Miscellaneous/todo.md b/Miscellaneous/todo.md index 479500c..130c054 100644 --- a/Miscellaneous/todo.md +++ b/Miscellaneous/todo.md @@ -11,4 +11,8 @@ * `https://www.npmjs.com/package/puppeteer` -* `https://devdocs.io` \ No newline at end of file +* `https://devdocs.io` + +* `https://github.com/mikaelbr/node-notifier` + +* `https://www.jianshu.com/p/077c9d5928f1` \ No newline at end of file diff --git a/README.md b/README.md index d8ef4aa..af8a88b 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,25 @@ * git常用命令总结 [linkToMd](./Miscellaneous/git.md) +![js](https://img.shields.io/badge/language-js-orange.svg) +* img2string +[linkToHtml](./Miscellaneous/img2string.html) + +![js](https://img.shields.io/badge/language-js-orange.svg) +* win10系统级别弹窗 +[linkToMd](./Miscellaneous/SnoreToast.md) + +![toDoList](https://img.shields.io/badge/content-UrlList-red.svg) +* 网址收藏 +[linkToMd](./Miscellaneous/todo.md) + +![Vue](https://img.shields.io/badge/language-js-orange.svg) +* Vue经验积累 +[linkToMd](./Miscellaneous/vue.md) + +![css](https://img.shields.io/badge/language-css-blue.svg) +* teansformMatrix +[linkToMd](./Miscellaneous/teansformMatrix.md) ---