mirror of
https://github.com/Nystik-gh/ignis.git
synced 2026-06-17 04:35:53 +00:00
13 lines
336 B
JavaScript
13 lines
336 B
JavaScript
export function realpathSync(path) {
|
|
return typeof path === "string" ? path : String(path);
|
|
}
|
|
|
|
export function realpath(path, options, callback) {
|
|
const cb = typeof options === "function" ? options : callback;
|
|
|
|
queueMicrotask(() => cb(null, realpathSync(path)));
|
|
}
|
|
|
|
realpath.native = realpath;
|
|
realpathSync.native = realpathSync;
|