chardet
- Version 2.0.0
- Published
- 159 kB
- No dependencies
- MIT license
Install
npm i chardet
yarn add chardet
pnpm add chardet
Overview
Character encoding detector
Index
Variables
Functions
Type Aliases
Variables
variable _default
const _default: { analyse: (buffer: Uint8Array) => AnalyseResult; detect: (buffer: Uint8Array) => string | null; detectFileSync: (filepath: string, opts?: Partial<FullOptions>) => DetectResult; detectFile: ( filepath: string, opts?: Partial<FullOptions> ) => Promise<DetectResult>;};
Functions
function analyse
analyse: (buffer: Uint8Array) => AnalyseResult;
function detect
detect: (buffer: Uint8Array) => string | null;
function detectFile
detectFile: (filepath: string, opts?: Options) => Promise<DetectResult>;
function detectFileSync
detectFileSync: (filepath: string, opts?: Options) => DetectResult;
Type Aliases
type AnalyseResult
type AnalyseResult = Match[];
type DetectResult
type DetectResult = string | null;
type Options
type Options = Partial<FullOptions>;
Package Files (1)
Dependencies (0)
No dependencies.
Dev Dependencies (8)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/chardet
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/chardet)
- HTML<a href="https://www.jsdocs.io/package/chardet"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3062 ms. - Missing or incorrect documentation? Open an issue for this package.