@archoleat/notifier
v1.0.3
Published
Simple notifier for plugins or bundlers
Downloads
50
Maintainers
Readme
Notifier
Table of Contents
A small, simple and customizable notifier for your projects.
Installation
bun i -D @archoleat/notifier
Usage
import { error, info, success, warning } from '@archoleat/notifier';
await info({
message:
[
'',
{
length: Infinity // Truncates the message after a specified number of characters.
},
]
| ['']
| '',
hasTime: true, // Enable/disable time, not work in desktop mode.
notificationMode: 'console', // Available modes: console, desktop, multiple.
});
Contributing
Please read CONTRIBUTING to start contributing.
License
This project is licensed under the MIT license.