Comparing version 0.7.8 to 0.7.10
@@ -519,2 +519,3 @@ #!/usr/bin/env node | ||
exec: 'node', | ||
forceExec: false, | ||
verbose: true, | ||
@@ -550,2 +551,3 @@ js: false, // becomes the default anyway... | ||
options.exec = args.shift(); | ||
options.forceExec = true; | ||
} else if (arg === '--legacy-watch' || arg === '-L') { | ||
@@ -589,2 +591,18 @@ options.forceLegacyWatch = true; | ||
// make sure --debug and --debug-brk is moved to the front | ||
// of the argument | ||
var debugIndex = -1; | ||
program.args = program.args.filter(function (arg, i) { | ||
if (arg.indexOf('--debug') === 0) { | ||
debugIndex = arg; | ||
return false; | ||
} else { | ||
return true; | ||
} | ||
}); | ||
if (debugIndex !== -1) { | ||
program.args.unshift(debugIndex); | ||
} | ||
if (!program.app) { | ||
@@ -603,3 +621,3 @@ program.app = program.args[0]; | ||
if (program.options.exec === 'node' && ((program.ext.indexOf('.coffee') !== -1) || (program.ext.indexOf('.litcoffee') !== -1) )) { | ||
if (!program.options.forceExec && program.options.exec === 'node' && program.ext.indexOf('coffee') !== -1) { | ||
program.options.exec = 'coffee'; | ||
@@ -616,3 +634,3 @@ } | ||
// this code is a dance to get the order of the debug flags right when combined with coffeescript | ||
var debugIndex = program.args.indexOf('--debug'); | ||
debugIndex = program.args.indexOf('--debug'); | ||
if (debugIndex === -1) { | ||
@@ -619,0 +637,0 @@ debugIndex = program.args.indexOf('--debug-brk'); |
{ | ||
"name": "nodemon", | ||
"homepage": "http://github.com/remy/nodemon", | ||
"author": { | ||
"name": "Remy Sharp", | ||
"url": "http://github.com/remy" | ||
}, | ||
"bin": { "nodemon" : "./nodemon.js" }, | ||
"repository": { "type" : "git", "url" : "http://github.com/remy/nodemon.git" }, | ||
"description": "Simple monitor script for use during development of a node.js app.", | ||
"keywords": ["monitor", "development", "restart", "autoload", "reload", "terminal"], | ||
"version": "0.7.8", | ||
"preferGlobal" : "true", | ||
"licenses": [{ | ||
"name": "nodemon", | ||
"homepage": "http://github.com/remy/nodemon", | ||
"author": { | ||
"name": "Remy Sharp", | ||
"url": "http://github.com/remy" | ||
}, | ||
"bin": { | ||
"nodemon": "./nodemon.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "http://github.com/remy/nodemon.git" | ||
}, | ||
"description": "Simple monitor script for use during development of a node.js app.", | ||
"keywords": [ | ||
"monitor", | ||
"development", | ||
"restart", | ||
"autoload", | ||
"reload", | ||
"terminal" | ||
], | ||
"version": "0.7.10", | ||
"preferGlobal": "true", | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://rem.mit-license.org" | ||
}], | ||
"main": "./nodemon" | ||
} | ||
], | ||
"main": "./nodemon", | ||
"scripts": { | ||
"test": "mocha --ui bdd --reporter spec ./test/*.js" | ||
}, | ||
"devDependencies": { | ||
"connect": "*", | ||
"mocha": "~1.9.0", | ||
"should": "~1.2.2" | ||
} | ||
} |
# nodemon | ||
[![Flattr this](http://api.flattr.com/button/flattr-badge-large.png)](http://flattr.com/thing/1211372/remynodemon-on-GitHub) | ||
For use during development of a node.js based application. | ||
@@ -9,2 +11,5 @@ | ||
[![NPM version](https://badge.fury.io/js/nodemon.png)](http://badge.fury.io/js/nodemon) | ||
[![Travis Status](https://travis-ci.org/remy/nodemon.png)](https://travis-ci.org/remy/nodemon) | ||
# Installation | ||
@@ -68,3 +73,3 @@ | ||
By default, nodemon looks for files with the `.js` extension. If you use the `--exec` option and monitor `app.py` nodemon will monitor files with the extension of `.py`. However, you can specify your own list with the `-e` switch like so: | ||
By default, nodemon looks for files with the `.js`, `.coffee`, and `.litcoffee` extensions. If you use the `--exec` option and monitor `app.py` nodemon will monitor files with the extension of `.py`. However, you can specify your own list with the `-e` switch like so: | ||
@@ -127,2 +132,6 @@ nodemon -e js,css,html | ||
# Using nodemon in your Grunt workflow | ||
Check out the [grunt-nodemon](https://github.com/ChrisWren/grunt-nodemon) plugin to integrate nodemon with the rest of your project's grunt workflow. | ||
# Help! My changes aren't being detected! | ||
@@ -129,0 +138,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 3 instances in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 2 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 9 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2165684
647
45490
145
3
4
146
40