update
This commit is contained in:
parent
3157e66ad1
commit
fba170d342
25
Miscellaneous/SnoreToast.md
Normal file
25
Miscellaneous/SnoreToast.md
Normal file
@ -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)
|
||||||
|
});
|
||||||
|
```
|
BIN
Miscellaneous/snoretoast.exe
Normal file
BIN
Miscellaneous/snoretoast.exe
Normal file
Binary file not shown.
@ -11,4 +11,8 @@
|
|||||||
|
|
||||||
* `https://www.npmjs.com/package/puppeteer`
|
* `https://www.npmjs.com/package/puppeteer`
|
||||||
|
|
||||||
* `https://devdocs.io`
|
* `https://devdocs.io`
|
||||||
|
|
||||||
|
* `https://github.com/mikaelbr/node-notifier`
|
||||||
|
|
||||||
|
* `https://www.jianshu.com/p/077c9d5928f1`
|
19
README.md
19
README.md
@ -10,6 +10,25 @@
|
|||||||
* git常用命令总结
|
* git常用命令总结
|
||||||
[linkToMd](./Miscellaneous/git.md)
|
[linkToMd](./Miscellaneous/git.md)
|
||||||
|
|
||||||
|

|
||||||
|
* img2string
|
||||||
|
[linkToHtml](./Miscellaneous/img2string.html)
|
||||||
|
|
||||||
|

|
||||||
|
* win10系统级别弹窗
|
||||||
|
[linkToMd](./Miscellaneous/SnoreToast.md)
|
||||||
|
|
||||||
|

|
||||||
|
* 网址收藏
|
||||||
|
[linkToMd](./Miscellaneous/todo.md)
|
||||||
|
|
||||||
|

|
||||||
|
* Vue经验积累
|
||||||
|
[linkToMd](./Miscellaneous/vue.md)
|
||||||
|
|
||||||
|

|
||||||
|
* teansformMatrix
|
||||||
|
[linkToMd](./Miscellaneous/teansformMatrix.md)
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user