realpath-missing
Canonicalize by following every symlink in every component of the given name recursively, without requirements on components existence
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