npm install --save @types/detect-character-encoding
This package contains type definitions for detect-character-encoding (https://github.com/sonicdoe/detect-character-encoding#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/detect-character-encoding.
/// <reference types="node"/>
export = detectCharacterEncoding;
declare function detectCharacterEncoding(buf: Buffer): detectCharacterEncoding.Result | null;
declare namespace detectCharacterEncoding {
interface Result {
encoding: string;
confidence: number;
}
}
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: @types/node
These definitions were written by BendingBender.