Download mods/diff/hooks/views/layout/plural/plural.ts from SaylorTwift/claude-code: direct link, hf CLI and curl.
- Browser
- Download file 294 Bytes
-
https://huggingface.co/SaylorTwift/claude-code/resolve/main/mods/diff/hooks/views/layout/plural/plural.ts
- Command line
-
hf download hf://SaylorTwift/claude-code/mods/diff/hooks/views/layout/plural/plural.ts
-
curl -L -o plural.ts https://huggingface.co/SaylorTwift/claude-code/resolve/main/mods/diff/hooks/views/layout/plural/plural.ts
294 Bytes
| /** | |
| * `1 file`, `2 files`: the count, a space, and the noun with an `s` unless | |
| * the count is one. | |
| * | |
| * @param count how many | |
| * @param noun the singular noun | |
| * @returns the phrase | |
| */ | |
| export const plural = (count: number, noun: string) => | |
| count === 1 ? `1 ${noun}` : `${count} ${noun}s` | |