Download packages/api/src/utils.ts from mikmc/easynews: direct link, hf CLI and curl.
- Browser
- Download file 151 Bytes
-
https://huggingface.co/spaces/mikmc/easynews/resolve/main/packages/api/src/utils.ts
- Command line
-
hf download hf://spaces/mikmc/easynews/packages/api/src/utils.ts
-
curl -L -o utils.ts https://huggingface.co/spaces/mikmc/easynews/resolve/main/packages/api/src/utils.ts
151 Bytes
| export function createBasic(username: string, password: string) { | |
| const userInfo = `${username}:${password}`; | |
| return `Basic ${btoa(userInfo)}`; | |
| } | |