Spaces:
Running
Running
Download scripts/normalize-dist.mjs from Ashish50514561/FR-Data-Analysis: direct link, hf CLI and curl.
- Browser
- Download file 236 Bytes
-
https://huggingface.co/spaces/Ashish50514561/FR-Data-Analysis/resolve/main/scripts/normalize-dist.mjs
- Command line
-
hf download hf://spaces/Ashish50514561/FR-Data-Analysis/scripts/normalize-dist.mjs
-
curl -L -o normalize-dist.mjs https://huggingface.co/spaces/Ashish50514561/FR-Data-Analysis/resolve/main/scripts/normalize-dist.mjs
236 Bytes
| import { readFile, writeFile } from 'node:fs/promises'; | |
| const indexPath = new URL('../dist/index.html', import.meta.url); | |
| const html = await readFile(indexPath, 'utf8'); | |
| await writeFile(indexPath, html.replace(/\r\n?/g, '\n'), 'utf8'); |