function verifyLink()

in src/npm-link.js [122:136]


function verifyLink (linkedModule, installedModule) {
    cdInto(installedModule);
    const linkedPath = path.join(shelljs.pwd(), 'node_modules', linkedModule);
    if (!fs.existsSync(linkedPath)) {
        return false;
    }

    const myStat = fs.lstatSync(linkedPath);
    if (!myStat.isSymbolicLink()) {
        return false;
    }

    cdOutOf();
    return true;
}