mirror of
https://github.com/Nystik-gh/ignis.git
synced 2026-06-17 04:35:53 +00:00
expand shim coverage, additional fs shims, add light stream shim
This commit is contained in:
12
packages/shim/src/fs/realpath.js
Normal file
12
packages/shim/src/fs/realpath.js
Normal file
@@ -0,0 +1,12 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user