UNPKG

ember-cli-dependency-checker

Version:

Ember CLI addon for detecting missing npm and bower dependencies before executing ember commands

11 lines (9 loc) 209 B
const fs = require('fs'); module.exports = function isSymlink(path) { if (fs.existsSync(path)) { const stats = fs.lstatSync(path); return stats.isSymbolicLink(); } else { return false; } };