Permalink
Browse files

Node 0.7+ compat, use fs.exists* fixes #151

  • Loading branch information...
1 parent 0eca257 commit 672b9c0dd004ede742c86180b31091a07bbeaa68 @rvagg rvagg committed Jun 17, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/ender.js
View
@@ -6,6 +6,12 @@
process.title = "Ender"
+// for Node 0.7+ compatibility
+'exists' in require('path') && (function () {
+ require('path').exists = require('fs').exists
+ require('path').existsSync = require('fs').existsSync
+}())
+
var colors = require('colors')
, fs = require('fs')
, path = require('path')

0 comments on commit 672b9c0

Please sign in to comment.