UNPKG

npmrcd

Version:

CLI that installs a daemon/agent that will automatically switch between npm registries on a developer machine.

20 lines (15 loc) 424 B
'use strict' const notifier = require('node-notifier') const delay = require('delay') const log = require('barelog') module.exports = async ({ title, message }) => { log(`showing notification with title ${title}, and message "${message}"`) notifier.notify({ wait: true, sound: 'Glass', title, message }) // This is hack required to ensure the notificaton is displayed. Yuck await delay(5000) }