0.0.5 • Published 6 months ago

@tahasadough/whisper v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
6 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

6 months ago

0.0.4

6 months ago

0.0.3

6 months ago

0.0.2

6 months ago

0.0.1

6 months ago