(value: string)
| 19 | |
| 20 | type Words = typeof fileOutlineWords.en; |
| 21 | const code = (value: string) => `\`${(value.length > VALUE ? `${value.slice(0, VALUE - 1)}…` : value).replace(/`/g, "'")}\``; |
| 22 | const lineCount = (text: string) => text ? text.split(/\r?\n/).length - (/\r?\n$/.test(text) ? 1 : 0) : 0; |
| 23 | const extension = (path: string) => (path.split('/').pop() ?? path).split('.').slice(1).pop()?.toLowerCase() ?? ''; |
| 24 |
no outgoing calls
no test coverage detected