MCPcopy Create free account
hub / github.com/Maccoder3/MAC-MD / __require

Function __require

lib/helper.js:37–40  ·  view source on GitHub ↗
(dir = import.meta)

Source from the content-addressed store, hash-verified

35
36/** @param {ImportMeta | string} dir */
37const __require = function require(dir = import.meta) {
38 const path = /** @type {ImportMeta} */ (dir).url || /** @type {String} */ (dir)
39 return createRequire(path)
40}
41/** @param {string} file */
42const checkFileExists = file =>
43 fs.promises

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected