(buffer: string)
| 245 | const BOM = [239, 187, 191] |
| 246 | |
| 247 | function hasBom(buffer: string) { |
| 248 | return BOM.every((charCode: number, index: number) => buffer.charCodeAt(index) === charCode) |
| 249 | } |
| 250 | |
| 251 | /** |
| 252 | * @since 1.0.0 |
no outgoing calls
no test coverage detected
searching dependent graphs…