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

pathwatcher

Package Overview
Dependencies
Maintainers
2
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pathwatcher - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

4

lib/main.js
(function() {
var EventEmitter, HandleWatcher, PathWatcher, binding, fs, handleWatchers, util,
var EventEmitter, HandleWatcher, PathWatcher, binding, fs, handleWatchers,
__hasProp = {}.hasOwnProperty,

@@ -12,4 +12,2 @@ __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

util = require('util');
handleWatchers = {};

@@ -16,0 +14,0 @@

@@ -5,4 +5,4 @@ {

"readme": "README.md",
"description": "watch events of a file",
"version": "0.4.0",
"description": "Watch file events",
"version": "0.5.0",
"licenses": [

@@ -21,8 +21,8 @@ {

},
"homepage": "http://atom.github.io/node-pathwatcher",
"scripts": {
"prepublish": "grunt coffee",
"test": "jasmine-node --forceexit --coffee spec/"
"prepublish": "grunt clean lint coffee",
"test": "grunt test"
},
"devDependencies": {
"jasmine-node": "~1.5.0",
"grunt": "~0.4.1",

@@ -32,3 +32,7 @@ "grunt-contrib-coffee": "~0.6.6",

"grunt-shell": "~0.2.2",
"coffee-script": "~1.6.2"
"coffee-script": "~1.6.2",
"jasmine-focused": "~0.7.0",
"rimraf": "~2.2.0",
"node-cpplint": "~0.1.4",
"grunt-coffeelint": "0.0.6"
},

@@ -35,0 +39,0 @@ "dependencies": {

@@ -16,6 +16,10 @@ # Path Watcher Node Module

## Docs
## Using
### watch(filename, [listener])
```coffeescript
PathWatcher = require 'pathwatcher'
```
### PathWatcher.watch(filename, [listener])
Watch for changes on `filename`, where `filename` is either a file or a

@@ -22,0 +26,0 @@ directory. The returned object is a PathWatcher.

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