Spaces:
Paused
Paused
Download node_modules/esrun/index.js from no1b4me/hytranslator: direct link, hf CLI and curl.
- Browser
- Download file 483 Bytes
-
https://huggingface.co/spaces/no1b4me/hytranslator/resolve/main/node_modules/esrun/index.js
- Command line
-
hf download hf://spaces/no1b4me/hytranslator/node_modules/esrun/index.js
-
curl -L -o index.js https://huggingface.co/spaces/no1b4me/hytranslator/resolve/main/node_modules/esrun/index.js
483 Bytes
| import Runner from "./runners/Runner.js"; | |
| import Watcher from "./runners/Watcher.js"; | |
| export { Runner, Watcher, esrun }; | |
| /** | |
| * Run any .ts or .js file | |
| */ | |
| export default async function esrun(inputFile, options) { | |
| if (options?.watch && options?.inspect) { | |
| console.warn(`--inspect and --watch options are not compatible together. Disabling watch mode.`); | |
| options.watch = false; | |
| } | |
| return new (options?.watch ? Watcher : Runner)(inputFile, options).run(); | |
| } | |