UNPKG

@n3okill/utils

Version:
8 lines (7 loc) 270 B
/** * Detects buffer enconding * This is basic helper that will only detect buffer encoding between `utf8` and `utf16le` * @param arg the buffer to detect encoding * @returns detected encoding */ export declare function detectEncoding(arg: Buffer): BufferEncoding;