Skip to content

Commit

Permalink
implement update-notifier (#20)
Browse files Browse the repository at this point in the history
closes #17
  • Loading branch information
bartveneman authored Dec 24, 2018
1 parent 552641d commit 712c71d
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 85 deletions.
3 changes: 3 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const getStdin = require('get-stdin')
const isAbsoluteUrl = require('is-absolute-url')
const getCss = require('get-css')
const ora = require('ora')
const updateNotifier = require('update-notifier')
const tableify = require('./table.js')

// CONFIG
Expand Down Expand Up @@ -51,6 +52,8 @@ const cli = meow(
}
)

updateNotifier({pkg: cli.pkg}).notify()

const input = cli.input[0]

if (!input && process.stdin.isTTY) {
Expand Down
Loading

0 comments on commit 712c71d

Please sign in to comment.