1.1.0 • Published 3 months ago

@brunocroh/notify-me v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Installation

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,
});

use it from your terminal

npm install -g  @brunocroh/notify-me

then

$ notify-me

Usage on Terminal

Running on terminal

A simple notification

$ notify-me

Change title and description of notification

$ notify-me -t "Title" -d "Description"

running after other program finished

$ pnpm install && notify-me -t "pnpm install" -d "Finished"

running after other program finished with sound

$ pnpm install && notify-me -t "pnpm install" -d "Finished" -s

Inside of your node project

import NotifyMe from "@brunocroh/notify-me";

const SomethingThatTookAlotOfTime = async () => {
  // code here
};

const main = async () => {
  await SomethingThatTookAlotOfTime();
  NotifyMe.notify("Hello", "Something happen here", {
    sound: true,
  });
};

Maintainers

1.1.0

3 months ago

1.0.1

3 months ago

1.0.0

3 months ago

0.0.1

3 months ago