Create notifications on your OS from terminal or code
npm install @brunocroh/notify-me
then, you can create notification from your code like this:
import NotifyMe from "@brunocroh/notify-me";
NotifyMe.notify("Hello", "Something happen here", {
sound: true,
});
OR
npm install -g @brunocroh/notify-me
then
$ notify-me
$ notify-me
$ notify-me -t "Title" -d "Description"
$ pnpm install && notify-me -t "pnpm install" -d "Finished"
$ pnpm install && notify-me -t "pnpm install" -d "Finished" -s
import NotifyMe from "@brunocroh/notify-me";
const SomethingThatTookAlotOfTime = async () => {
// code here
};
const main = async () => {
await SomethingThatTookAlotOfTime();
NotifyMe.notify("Hello", "Something happen here", {
sound: true,
});
};