Spaces:
Configuration error
Configuration error
Download node_modules/is-binary-path/index.js from W404NET/Telegram-Chat-Bot: direct link, hf CLI and curl.
- Browser
- Download file 239 Bytes
-
https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/2e8e2424cb318e54001663c95785ca0ede9de23e/node_modules/is-binary-path/index.js
- Command line
-
hf download hf://spaces/W404NET/Telegram-Chat-Bot@2e8e2424cb318e54001663c95785ca0ede9de23e/node_modules/is-binary-path/index.js
-
curl -L -o index.js https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/2e8e2424cb318e54001663c95785ca0ede9de23e/node_modules/is-binary-path/index.js
239 Bytes
| ; | |
| const path = require('path'); | |
| const binaryExtensions = require('binary-extensions'); | |
| const extensions = new Set(binaryExtensions); | |
| module.exports = filePath => extensions.has(path.extname(filePath).slice(1).toLowerCase()); | |