index.js 188 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 var fs = require('fs') , lstat = fs.lstatSync; exports.readlinkSync = function (p) { if (lstat(p).isSymbolicLink()) { return fs.readlinkSync(p); } else { return p; } };