mirror of
https://github.com/SrIzan10/nodemon.git
synced 2026-05-01 10:55:09 +00:00
17 lines
404 B
JavaScript
Executable File
17 lines
404 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
'use strict';
|
|
var cli = require('../lib/cli');
|
|
var nodemon = require('../lib/');
|
|
var options = cli.parse(process.argv);
|
|
|
|
nodemon(options);
|
|
|
|
var fs = require('fs');
|
|
|
|
// checks for available update and returns an instance
|
|
var pkg = JSON.parse(fs.readFileSync(__dirname + '/../package.json'));
|
|
|
|
if (pkg.version.indexOf('0.0.0') !== 0) {
|
|
require('update-notifier')({ pkg }).notify();
|
|
}
|