1
0
forked from Rowland/EG
EG/Cesium-1.132/node_modules/markdownlint/lib/node-imports-browser.mjs
2025-08-25 17:48:13 +08:00

21 lines
457 B
JavaScript

// @ts-check
const getError = () => new Error("Node APIs are not available in browser context.");
const throwForSync = () => {
throw getError();
};
export const fs = {
"access": (path, callback) => callback(getError()),
"accessSync": throwForSync,
"readFile": (path, options, callback) => callback(getError()),
"readFileSync": throwForSync
};
export const os = {};
export const path = {
"dirname": throwForSync,
"resolve": throwForSync
};