Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

npm-watch

Package Overview
Dependencies
Maintainers
4
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-watch - npm Package Compare versions

Comparing version 0.7.0 to 0.8.0

8

package.json
{
"name": "npm-watch",
"version": "0.7.0",
"version": "0.8.0",
"description": "run scripts from package.json when files change",
"main": "index.js",
"dependencies": {
"nodemon": "^2.0.3",
"through2": "^2.0.0"
"nodemon": "^2.0.7",
"through2": "^4.0.2"
},
"devDependencies": {
"crlf": "^1.1.0"
"crlf": "^1.1.1"
},

@@ -13,0 +13,0 @@ "bin": "./cli.js",

@@ -26,3 +26,3 @@ # npm-watch

Possibilty to watch for different tasks
There is the possibility to watch for different tasks

@@ -63,3 +63,3 @@ ```javascript

> The `quiet` flag was changed from a `string` to a `boolean` in `0.1.5`. Backwards compatability will be kept for two patch versions.
> The `quiet` flag was changed from a `string` to a `boolean` in `0.1.5`. Backwards compatibility will be kept for two patch versions.

@@ -132,14 +132,49 @@ Use `runOnChangeOnly` to set the nodemon option [--on-change-only](https://github.com/remy/nodemon/blob/master/doc/cli/options.txt "--on-change-only"). Setting this to `true` tells nodemon to execute script on change only, not startup.

Array of paths to watch
```javascript
"patterns": ["src", "test"]
```
#### `extensions`
Array of file extensions to watch
Comma delimited list of file extensions to watch
```javascript
"extensions": "js,jsx"
```
#### `ignore`
String or array of paths to ignore
Add an `ignore` property to your `watch` object. The value of `ignore` can be a string if you only want to ignore
a single glob:
```
"watch": {
"build": {
"ignore": "build",
...
}
...
}
```
Or an array if you want to ignore multiple globs:
```
"watch": {
"build": {
"ignore": [
"build",
"node_modules"
],
...
}
...
}
```
#### `quiet`
Boolean to hide the script name in any output on stdout and stderr
```javascript
"quiet": false
```

@@ -149,2 +184,5 @@ #### `inherit`

Boolean to preserve the original process' stdout and stderr
```javascript
"inherit": false
```

@@ -154,2 +192,5 @@ #### `legacyWatch`

Boolean to enable [legacy watch](https://github.com/remy/nodemon#application-isnt-restarting)
```javascript
"legacyWatch": true
```

@@ -159,2 +200,5 @@ #### `delay`

Number of milliseconds to [delay](https://github.com/remy/nodemon#delaying-restarting) before checking for new files
```javascript
"delay": 2500
```

@@ -164,2 +208,5 @@ #### `clearBuffer`

Boolean to clear the buffer after detecting a new change
```javascript
"clearBuffer": true
```

@@ -169,2 +216,5 @@ #### `verbose`

Boolean to turn on the nodemons verbose mode
```javascript
"verbose": true
```

@@ -176,32 +226,6 @@ #### `silent`

#### `Ignore files`
Add an `ignore` property to your `watch` object. The value of `ignore` can be a string if you only want to ignore
a single glob:
```javascript
"silent": true
```
"watch": {
"build": {
"ignore": "build",
...
}
...
}
```
Or an array if you want to ignore multiple globs:
```
"watch": {
"build": {
"ignore": [
"build",
"node_modules"
],
...
}
...
}
```
## Acknowledgements

@@ -208,0 +232,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc