Spaces:
Runtime error
Runtime error
Download static/node_modules/debug/src/inspector-log.js from kaab4321/NarrativeFlow: direct link, hf CLI and curl.
- Browser
- Download file 373 Bytes
-
https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/debug/src/inspector-log.js
- Command line
-
hf download hf://spaces/kaab4321/NarrativeFlow/static/node_modules/debug/src/inspector-log.js
-
curl -L -o inspector-log.js https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/debug/src/inspector-log.js
373 Bytes
| module.exports = inspectorLog; | |
| // black hole | |
| const nullStream = new (require('stream').Writable)(); | |
| nullStream._write = () => {}; | |
| /** | |
| * Outputs a `console.log()` to the Node.js Inspector console *only*. | |
| */ | |
| function inspectorLog() { | |
| const stdout = console._stdout; | |
| console._stdout = nullStream; | |
| console.log.apply(console, arguments); | |
| console._stdout = stdout; | |
| } | |