MCPcopy Index your code
hub / github.com/nodejs/node / realpath

Function realpath

lib/internal/fs/promises.js:2007–2019  ·  view source on GitHub ↗
(path, options)

Source from the content-addressed store, hash-verified

2005}
2006
2007async function realpath(path, options) {
2008 const h = vfsState.handlers;
2009 if (h !== null) {
2010 const promise = h.realpath(path, options);
2011 if (promise !== undefined) return await promise;
2012 }
2013 options = getOptions(options);
2014 return await PromisePrototypeThen(
2015 binding.realpath(getValidatedPath(path), options.encoding, kUsePromises),
2016 undefined,
2017 handleErrorFromBinding,
2018 );
2019}
2020
2021async function mkdtemp(prefix, options) {
2022 const h = vfsState.handlers;

Callers 1

realpathMethod · 0.70

Calls 2

getOptionsFunction · 0.70
realpathMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…