Permalink
Browse files

Merge pull request #55 from wibuni/master

Prefer fs.exists to path.exists
  • Loading branch information...
fb55 committed Sep 6, 2012
2 parents e42d547 + a03f281 commit 1034bd6f8ff13cb54427f3cb64f551a7d3eff090
Showing with 3 additions and 2 deletions.
  1. +2 −1 lib/require-analyzer.js
  2. +1 −1 package.json
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>",

0 comments on commit 1034bd6

Please sign in to comment.