Skip to content

archoleat/notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notifier

NPM Version NPM Downloads ESM Provenance CodeQL Specs Commitlint Editorconfig Prettier ESLint Remark

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.