@heroku-cli/notifications
Version:
display notifications in Heroku CLI commands
26 lines (17 loc) • 953 B
Markdown
@heroku-cli/notifications
=========================
display notifications in Heroku CLI commands. Based on [node-notifier](https://github.com/mikaelbr/node-notifier).
[](https://npmjs.org/package/@heroku-cli/notifications)
[](https://github.com/heroku/heroku-cli-notifications/actions/workflows/ci.yml)
[](https://github.com/heroku/heroku-cli-notifications/blob/master/package.json)
<!-- toc -->
# Usage
If `HEROKU_NOTIFICATIONS=0|false` then this will not be displayed.
```typescript
import {notify} from '@heroku-cli/notifications'
notify({
title: 'notification title',
message: 'notification message',
})
```
See the [node-notifier](https://github.com/mikaelbr/node-notifier) docs for more information.