this package has been moved to https://github.com/zkochan/packages/tree/master/root-link-target
Gets the shortest directory to which a file can be linked
npm i -S root-link-targetconst rootLinkTarget = require('root-link-target')
rootLinkTarget.sync('C:\\sub\\dir\\foo.txt')
//> C:\\Returns the shortest directory to which filename can be linked