mozilla / connect-cachify

Express connect middleware to provide easy frontend caching for Node.js
Mozilla Public License 2.0
131 stars 21 forks source link

path.existsSync is now called `fs.existsSync`. #21

Closed ozten closed 11 years ago

ozten commented 11 years ago

We should try to use fs.existsSync and fallback to path's version if unavailable.

seanmonstar commented 11 years ago
var fs = require('fs');
var path = require('path');
var existsSync = fs.existsSync || path.existsSync;