Socket
Socket
Sign inDemoInstall

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.8.0 to 0.9.0

2

package.json
{
"name": "npm-watch",
"version": "0.8.0",
"version": "0.9.0",
"description": "run scripts from package.json when files change",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -125,2 +125,5 @@ # npm-watch

Once you have the watcher running, you can force restart all tasks by entering `rs`.
If you want to only force a single task, type the name of the key from the watch config (for example `rs test`).
### Options

@@ -127,0 +130,0 @@

@@ -33,3 +33,3 @@ 'use strict';

line = line.toString()
var match = line.match(/^rs\s+(\w+)/)
var match = line.match(/^rs\s*(.*)/)
if (!match) {

@@ -39,9 +39,17 @@ console.log('Unrecognized input:', line)

}
var proc = processes[match[1]]
if (!proc) {
console.log('Couldn\'t find process:', match[1])
return callback()
if (match[1]) {
var proc = processes[match[1]]
if (!proc) {
console.log('Couldn\'t find process:', match[1])
return callback()
}
proc.stdin.write('rs\r\n')
return callback();
} else {
Object.keys(processes).forEach(function (key) {
processes[key].stdin.write('rs\r\n')
})
callback()
}
proc.stdin.write('rs\n')
callback()
})

@@ -48,0 +56,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