Comparing version 0.1.0 to 0.1.1
@@ -101,3 +101,8 @@ 'use strict'; | ||
var dirname = node_path.dirname(path); | ||
var dirname; | ||
if (node_fs.lstatSync(path).isDirectory()) { | ||
dirname = path; | ||
} else { | ||
dirname = node_path.dirname(path); | ||
} | ||
@@ -104,0 +109,0 @@ // Or add a new container |
{ | ||
"name": "peep", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Peep is a smart fs.watch wrapper which is lighter and faster, uses as less fs.FSWatchers as possible, and could prevent duplicate watching.", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "git://github.com/kaelzhang/peep.git" | ||
"url": "git://github.com/deiga/peep.git" | ||
}, | ||
@@ -23,13 +23,20 @@ "keywords": [ | ||
], | ||
"author": "kael", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/kaelzhang/peep/issues" | ||
"url": "https://github.com/deiga/peep/issues" | ||
}, | ||
"dependencies": { | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"mocha": "*", | ||
"chai": "*" | ||
}, | ||
"devDependencies": { | ||
"mocha": "~1.12.0", | ||
"chai": "~1.7.2" | ||
} | ||
"maintainers": [ | ||
"kael <i@kael.me>", | ||
"deiga <timo.j.sand@gmail.com>" | ||
], | ||
"homepage": "https://github.com/deiga/peep", | ||
"directories": { | ||
"test": "test" | ||
}, | ||
"author": "kael" | ||
} |
# Peep | ||
Peep is a smart `fs.watch` wrapper which is lighter and faster. It uses as less `fs.FSWatcher`s as possible, and could prevent duplicate watching. | ||
Peep is a smart `fs.watch` wrapper which is lighter and faster. It uses as little `fs.FSWatcher`s as possible, and can prevent duplicate watching. | ||
Peep has a better `.add()` method which could automatically detect nested structures between the current watched files and directories, and choose the best strategy to make it fast and of less resources usage. | ||
Peep has a better `.add()` method which can automatically detect nested structures between the current watched files and directories, and choose the best strategy to make it fast and use less resources. | ||
@@ -62,2 +62,2 @@ ## Installation | ||
What's comming... | ||
What's coming... |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1
2
1
8749
6
164
1