Download node_modules/cross-fetch/dist/node-polyfill.js from HarshvardhanCn01/Voice-Assistant: direct link, hf CLI and curl.
- Browser
- Download file 278 Bytes
-
https://huggingface.co/spaces/HarshvardhanCn01/Voice-Assistant/resolve/main/node_modules/cross-fetch/dist/node-polyfill.js
- Command line
-
hf download hf://spaces/HarshvardhanCn01/Voice-Assistant/node_modules/cross-fetch/dist/node-polyfill.js
-
curl -L -o node-polyfill.js https://huggingface.co/spaces/HarshvardhanCn01/Voice-Assistant/resolve/main/node_modules/cross-fetch/dist/node-polyfill.js
278 Bytes
| const fetchNode = require('./node-ponyfill') | |
| if (!global.fetch) { | |
| const fetch = fetchNode.fetch.bind({}) | |
| global.fetch = fetch | |
| global.fetch.polyfill = true | |
| global.Response = fetchNode.Response | |
| global.Headers = fetchNode.Headers | |
| global.Request = fetchNode.Request | |
| } | |