Skip to content

Instantly share code, notes, and snippets.

@daxxog
Created November 7, 2012 16:22
Show Gist options
  • Save daxxog/4032594 to your computer and use it in GitHub Desktop.
Save daxxog/4032594 to your computer and use it in GitHub Desktop.
fs.exists support for older node versions
//fs.exists support for older node versions
if(typeof fs.exists != 'function') {
fs.exists = path.exists;
}
if(typeof fs.existsSync != 'function') {
fs.existsSync = path.existsSync;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment