quaertym/ember-cli-dependency-checker

View on GitHub
lib/utils/is-symlink.js

Summary

Maintainability
A
0 mins
Test Coverage
const fs = require('fs');

module.exports = function isSymlink(path) {
  if (fs.existsSync(path)) {
    const stats = fs.lstatSync(path);
    return stats.isSymbolicLink();
  } else {
    return false;
  }
};