Skip to content

Commit dc4884d

Browse files
committed
Add version checker
1 parent 6604bb2 commit dc4884d

File tree

3 files changed

+367
-26
lines changed

3 files changed

+367
-26
lines changed

cli.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
#!/usr/bin/env node
22
const meow = require('meow');
3+
const updateNotifier = require('update-notifier');
4+
35
const openUrl = require('./open-url');
6+
const pkg = require('./package.json');
47

58
const parseCookieArg = require('./helpers/parse-cookie-arg');
69
const parseHeaderArg = require('./helpers/parse-header-arg');
710

11+
const notifier = updateNotifier({ pkg, updateCheckInterval: 0 });
12+
notifier.notify({
13+
defer: true
14+
});
15+
816
const cli = meow({
917
help: `
1018
Usage

0 commit comments

Comments
 (0)