Download node_modules/@npmcli/fs/lib/fs.js from sweet2004/bot: direct link, hf CLI and curl.
- Browser
- Download file 377 Bytes
-
https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40npmcli/fs/lib/fs.js
- Command line
-
hf download hf://spaces/sweet2004/bot/node_modules/@npmcli/fs/lib/fs.js
-
curl -L -o fs.js https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40npmcli/fs/lib/fs.js
377 Bytes
| const fs = require('fs') | |
| const promisify = require('@gar/promisify') | |
| // this module returns the core fs module wrapped in a proxy that promisifies | |
| // method calls within the getter. we keep it in a separate module so that the | |
| // overridden methods have a consistent way to get to promisified fs methods | |
| // without creating a circular dependency | |
| module.exports = promisify(fs) | |