root-link-target
Gets the shortest directory to which a file can be linked
Last updated 5 years ago by zkochan .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install root-link-target 
SYNC missed versions from official npm registry.

root-link-target

Gets the shortest directory to which a file can be linked

npm version

Installation

<npm|yarn|pnpm> add 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

Current Tags

  • 3.0.0                                ...           latest (5 years ago)
  • 3.1.0                                ...           next (5 years ago)

5 Versions

  • 3.1.0                                ...           5 years ago
  • 3.0.0                                ...           5 years ago
  • 2.0.0                                ...           7 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (5)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |