Spaces:
Running
Running
Download node_modules/is-binary-path/index.js from Chunte/HFBA: direct link, hf CLI and curl.
- Browser
- Download file 239 Bytes
-
https://huggingface.co/spaces/Chunte/HFBA/resolve/refs%2Fpr%2F1/node_modules/is-binary-path/index.js
- Command line
-
hf download hf://spaces/Chunte/HFBA@refs/pr/1/node_modules/is-binary-path/index.js
-
curl -L -o index.js https://huggingface.co/spaces/Chunte/HFBA/resolve/refs%2Fpr%2F1/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()); | |