Prefer fs.exists to path.exists #55

Merged
merged 2 commits into from Sep 6, 2012
Jump to file or symbol
Failed to load files and symbols.
+3 −2
Split
View
@@ -8,6 +8,7 @@
var util = require('util'),
path = require('path'),
fs = require('fs'),
+ exists = fs.exists || path.exists,
events = require('events'),
fork = require('child_process').fork,
readInstalled = require('read-installed'),
@@ -375,7 +376,7 @@ analyzer.package = function (options, callback) {
}
function checkFile(file) {
- path.exists(file, fileExists)
+ exists(file, fileExists)
}
function fileExists(exists) {
View
@@ -1,7 +1,7 @@
{
"name": "require-analyzer",
"description": "Determine dependencies for a given node.js file, directory tree, or module in code or on the command line",
- "version": "0.4.1",
+ "version": "0.4.1-1",
"author": "Nodejitsu Inc. <info@nodejitsu.com>",
"maintainers": [
"indexzero <charlie@nodejitsu.com>",