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 | [![CircleCI](https://circleci.com/gh/heroku/heroku-cli-notifications/tree/master.svg?style=shield)](https://circleci.com/gh/heroku/heroku-cli-notifications/tree/master)
|
8 | [![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/heroku/heroku-cli-notifications?branch=master&svg=true)](https://ci.appveyor.com/project/heroku/heroku-cli-notifications/branch/master)
|
9 | [![Codecov](https://codecov.io/gh/heroku/heroku-cli-notifications/branch/master/graph/badge.svg)](https://codecov.io/gh/heroku/heroku-cli-notifications)
|
10 | [![Downloads/week](https://img.shields.io/npm/dw/@heroku-cli/notifications.svg)](https://npmjs.org/package/@heroku-cli/notifications)
|
11 | [![License](https://img.shields.io/npm/l/@heroku-cli/notifications.svg)](https://github.com/heroku/heroku-cli-notifications/blob/master/package.json)
|
12 | [![Greenkeeper badge](https://badges.greenkeeper.io/heroku/heroku-cli-notifications.svg)](https://greenkeeper.io/)
|
13 |
|
14 |
|
15 |
|
16 | # Usage
|
17 |
|
18 | If `HEROKU_NOTIFICATIONS=0|false` then this will not be displayed.
|
19 |
|
20 | ```typescript
|
21 | import {notify} from '@heroku-cli/notifications'
|
22 | notify({
|
23 | title: 'notification title',
|
24 | message: 'notification message',
|
25 | })
|
26 | ```
|
27 |
|
28 | See the [node-notifier](https://github.com/mikaelbr/node-notifier) docs for more information.
|