Spaces:
Sleeping
Sleeping
pythonic-rag-FastAPIReact / frontend /node_modules /@humanwhocodes /module-importer /src /module-importer.js
Download frontend/node_modules/@humanwhocodes/module-importer/src/module-importer.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 733 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/%40humanwhocodes/module-importer/src/module-importer.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/@humanwhocodes/module-importer/src/module-importer.js
-
curl -L -o module-importer.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/%40humanwhocodes/module-importer/src/module-importer.js
733 Bytes
| /** | |
| * @fileoverview Universal module importer | |
| */ | |
| //----------------------------------------------------------------------------- | |
| // Imports | |
| //----------------------------------------------------------------------------- | |
| import { createRequire } from "module"; | |
| import { fileURLToPath } from "url"; | |
| import { dirname } from "path"; | |
| //----------------------------------------------------------------------------- | |
| // Helpers | |
| //----------------------------------------------------------------------------- | |
| const __filename = fileURLToPath(import.meta.url); | |
| const __dirname = dirname(__filename); | |
| const require = createRequire(__dirname + "/"); | |
| const { ModuleImporter } = require("./module-importer.cjs"); | |
| export { ModuleImporter }; | |