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