(filePath: string)
| 98 | } |
| 99 | |
| 100 | function hashPath(filePath: string): string { |
| 101 | return crypto.createHash('sha1').update(normalizePath(filePath)).digest('hex').slice(0, 8); |
| 102 | } |
| 103 | |
| 104 | export function countUtf8Bytes(value: string): number { |
| 105 | return Buffer.byteLength(value, 'utf-8'); |
no test coverage detected