1 | @heroku-cli/notifications
|
2 | =========================
|
3 |
|
4 | display notifications in Heroku CLI commands. Based on [node-notifier](https://github.com/mikaelbr/node-notifier).
|
5 |
|
6 | [![Version](https://img.shields.io/npm/v/@heroku-cli/notifications.svg)](https://npmjs.org/package/@heroku-cli/notifications)
|
7 | [![GH CI](https://github.com/heroku/heroku-cli-notifications/actions/workflows/ci.yml/badge.svg)](https://github.com/heroku/heroku-cli-notifications/actions/workflows/ci.yml)
|
8 | [![License](https://img.shields.io/npm/l/@heroku-cli/notifications.svg)](https://github.com/heroku/heroku-cli-notifications/blob/master/package.json)
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | # Usage
|
14 |
|
15 | If `HEROKU_NOTIFICATIONS=0|false` then this will not be displayed.
|
16 |
|
17 | ```typescript
|
18 | import {notify} from '@heroku-cli/notifications'
|
19 | notify({
|
20 | title: 'notification title',
|
21 | message: 'notification message',
|
22 | })
|
23 | ```
|
24 |
|
25 | See the [node-notifier](https://github.com/mikaelbr/node-notifier) docs for more information.
|