Skip to content
This repository was archived by the owner on Sep 30, 2018. It is now read-only.

zkochan/root-link-target

Repository files navigation

this package has been moved to https://github.com/zkochan/packages/tree/master/root-link-target

root-link-target

Gets the shortest directory to which a file can be linked

npm version Build Status

Installation

npm i -S root-link-target

Usage

const rootLinkTarget = require('root-link-target')

rootLinkTarget.sync('C:\\sub\\dir\\foo.txt')
//> C:\\

API

rootLinkTarget.sync(filename): string

Returns the shortest directory to which filename can be linked

rootLinkTarget(filename): Promise<string>

License

MIT © Zoltan Kochan

About

Gets the shortest directory to which a file can be linked

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors