Have ideas to improve npm?Join in the discussion! »

    @runnerty/notifier-console

    3.0.3 • Public • Published

    Smart Processes Management

    NPM version Downloads Dependency Status code style: prettier

    A simple console notifier for Runnerty

    Installation:

    Through NPM

    npm i @runnerty/notifier-console

    You can also add modules to your project with runnerty-cli

    npx runnerty-cli add @runnerty/notifier-console

    This command installs the module in your project, adds example configuration in your config.json.

    If you have installed runnerty-cli globally you can include the module with this command:

    rty add @runnerty/notifier-console

    Configuration sample:

    Add in config.json:

    {
      "notifiers": [
        {
          "id": "console_default",
          "type": "@runnerty-notifier-console"
        }
      ]
    }

    Usage

    Define the type of console message that you need (or prefer) in your process' events

    info mode

    info notification on console

    {
      "notifications": {
        "on_end": [
          {
            "id": "console_default",
            "message": "Things done right.",
            "mode": "info"
          }
        ]
    }

    warn mode

    warning notification on console

    {
      "id": "console_default",
      "message": "We are out of candy!",
      "mode": "warn"
    }

    error mode

    error notification on console

    {
      "id": "console_default",
      "message": "Oh no.",
      "mode": "error"
    }

    Install

    npm i @runnerty/notifier-console

    DownloadsWeekly Downloads

    8

    Version

    3.0.3

    License

    MIT

    Unpacked Size

    6.71 kB

    Total Files

    10

    Last publish

    Collaborators

    • avatar