Spaces:
Configuration error
Configuration error
Download node_modules/@humanwhocodes/module-importer/dist/module-importer.js from CPISTO/TARSTHENEXT: direct link, hf CLI and curl.
- Browser
- Download file 561 Bytes
-
https://huggingface.co/spaces/CPISTO/TARSTHENEXT/resolve/main/node_modules/%40humanwhocodes/module-importer/dist/module-importer.js
- Command line
-
hf download hf://spaces/CPISTO/TARSTHENEXT/node_modules/@humanwhocodes/module-importer/dist/module-importer.js
-
curl -L -o module-importer.js https://huggingface.co/spaces/CPISTO/TARSTHENEXT/resolve/main/node_modules/%40humanwhocodes/module-importer/dist/module-importer.js
561 Bytes
| import { createRequire } from 'module'; | |
| import { fileURLToPath } from 'url'; | |
| import { dirname } from 'path'; | |
| /** | |
| * @fileoverview Universal module importer | |
| */ | |
| //----------------------------------------------------------------------------- | |
| // Helpers | |
| //----------------------------------------------------------------------------- | |
| const __filename = fileURLToPath(import.meta.url); | |
| const __dirname = dirname(__filename); | |
| const require = createRequire(__dirname + "/"); | |
| const { ModuleImporter } = require("./module-importer.cjs"); | |
| export { ModuleImporter }; | |