$ cnpm install realpath-missing
Canonicalize by following every symlink in every component of the given name recursively, without requirements on components existence
<npm|yarn|pnpm> add realpath-missing
'use strict'
const realpathMissing = require('realpath-missing')
console.log(await realpathMissing('package.json'))
//> /home/src/package.json
realpathMissing(path): Promise<path>Copyright 2013 - present © cnpmjs.org | Home |