fb-watchman
Advanced tools
Comparing version 0.0.0 to 0.0.1
15
index.js
@@ -14,6 +14,16 @@ /* Copyright 2014-present Facebook, Inc. | ||
function Client() { | ||
/** | ||
* @param options An object with the following optional keys: | ||
* * 'watchmanBinaryPath' (string) Absolute path to the watchman binary. | ||
* If not provided, the Client locates the binary using the PATH specified | ||
* by the node child_process's default env. | ||
*/ | ||
function Client(options) { | ||
var self = this; | ||
EE.call(this); | ||
this.watchmanBinaryPath = 'watchman'; | ||
if (options && options.watchmanBinaryPath) { | ||
this.watchmanBinaryPath = options.watchmanBinaryPath.trim(); | ||
}; | ||
this.commands = []; | ||
@@ -128,3 +138,4 @@ } | ||
// already running. | ||
childProcess.exec('watchman get-sockname', | ||
var watchmanCommand = this.watchmanBinaryPath + ' get-sockname'; | ||
childProcess.exec(watchmanCommand, | ||
function(error, stdout, stderr) { | ||
@@ -131,0 +142,0 @@ if (error) { |
{ | ||
"name": "fb-watchman", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "Bindings for the Watchman file watching service", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
14532
163