Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Commit

Permalink
Node 0.7+ compat, use fs.exists* fixes #151
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Jun 17, 2012
1 parent 0eca257 commit 672b9c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/ender.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 672b9c0

Please sign in to comment.