@brunocroh/notify-me
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Notify Me

Screenshot 2024-02-17 at 21 36 33

How To Use

Create notifications on your OS from terminal or code

npm version @brunocroh/notify-me is released under the MIT license. PRs welcome! Contact me at @brunocroh

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

OR

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

Package Sidebar

Install

npm i @brunocroh/notify-me

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

351 kB

Total Files

14

Last publish

Collaborators

  • brunocroh