show a message in a box (extracted from update-notifier)
type BoxenNotifyOptions = {
boxenOpts?: BoxenOptions,
defer?: boolean,
message?: string
}
-
see upstream documentation for [BoxenOptions](see: https://github.com/sindresorhus/boxen#boxeninput-options)
-
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
const { notify } = require('boxen-notify');
notify({ message: 'hello, world!' });
npm install --global flow-typed
npm install
flow-typed install
npm test