boxen-notify

show a message in a box (extracted from update-notifier)

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
boxen-notify
0131.0.06 years ago6 years agoMinified + gzip package size for boxen-notify in KB

Readme

boxen-notify npm AppVeyor Status Travis CI Status
show a message in a box (extracted from update-notifier)

Usage

notify(options: BoxenNotifyOptions)

type BoxenNotifyOptions = {
  boxenOpts?: BoxenOptions,
  defer?: boolean,
  message?: string
}


  • output message now, or defer until the process exits

  • same behaviour as upstream: does nothing if not in an interactive terminal, or if run as part of an npm run script

Example

const { notify } = require('boxen-notify')

notify({ message: 'hello, world!' })

Contributing

Development

npm install --global flow-typed
npm install
flow-typed install
npm test

Resources