1.0.3 • Published 10 months ago

@archoleat/notifier v1.0.3

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

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.