npm.io
2.0.0 • Published 3 months ago

realpath-missing

Licence
MIT
Version
2.0.0
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
103

realpath-missing

realpath-missing resolves the absolute path of a file or directory by following every symbolic link in every component of the given name recursively, even if some of the components do not exist.

npm version

Installation

<npm|yarn|pnpm> add realpath-missing

Usage

'use strict'
const realpathMissing = require('realpath-missing')

console.log(await realpathMissing('package.json'))
//> /home/src/package.json

API

realpathMissing(path): Promise<path>

License

MIT Zoltan Kochan