0.0.5 • Published 7 months ago

@tahasadough/whisper v0.0.5

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

Whisper

a lightweight, framework-independent notification library

Installation

With bun

bun add @tahasadough/whisper

With NPM

npm i @tahasadough/whisper

or anything you like

Getting Started

import { whisper } from "@tahasadough/whisper";

whisper("Hey buddy! Making progress?");

You can also pass an object for options:

whisper("Hey buddy! Making progress?", {
  position: "top-center",
  duration: 2000,
  id: "whisperID",
  textAlign: "left",
  type: "ordinary",
  backgroundColor: "#ededed",
  textColor: "#000000",
});
// more options will be added

To dismiss one or more whisper you can simply do:

whisper().dismiss("whisperID");
0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago