@indutny/simple-windows-notifications
v2.0.7
Published
Simple Windows Notifications
Downloads
2,625
Readme
@indutny/simple-windows-notifications
Installation
npm install @indutny/simple-windows-notifications
Usage
import { Notifier } from '@indutny/simple-windows-notifications';
const notifier = new Notifier('org.indutny.test');
notifier.clearAll();
notifier.remove({ tag: 'tag', group: 'group' });
const toastXml = `<toast>
<visual>
<binding template="ToastText02">
<text id="1">headlineText</text>
<text id="2">bodyText</text>
</binding>
</visual>
</toast>`;
notifier.show(toastXml, { tag: 'tag', group: 'group' });
See https://learn.microsoft.com/en-us/previous-versions/windows/apps/hh761494(v=win.10)
Limitations
Because streams are reused between several requests, if one of the requests gets stalled it might stall all other requests that are based on the same input stream. Depending on the use case, either more granular contexts could be used or a timeout could be added to all derived streams.
LICENSE
This software is licensed under the MIT License.