Socket
Socket
Sign inDemoInstall

fb-watchman

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fb-watchman - npm Package Compare versions

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) {

2

package.json
{
"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",

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