Spaces:
Paused
Paused
Download src/lib/parse-mode.ts from Echo-AI-official/Fire-crawl: direct link, hf CLI and curl.
- Browser
- Download file 243 Bytes
-
https://huggingface.co/spaces/Echo-AI-official/Fire-crawl/resolve/main/src/lib/parse-mode.ts
- Command line
-
hf download hf://spaces/Echo-AI-official/Fire-crawl/src/lib/parse-mode.ts
-
curl -L -o parse-mode.ts https://huggingface.co/spaces/Echo-AI-official/Fire-crawl/resolve/main/src/lib/parse-mode.ts
243 Bytes
| export function parseMode(mode: string) { | |
| switch (mode) { | |
| case "single_urls": | |
| return "single_urls"; | |
| case "sitemap": | |
| return "sitemap"; | |
| case "crawl": | |
| return "crawl"; | |
| default: | |
| return "single_urls"; | |
| } | |
| } | |