chardet

  • Version 1.3.0
  • Published
  • 207 kB
  • No dependencies
  • MIT license

Install

npm i chardet
yarn add chardet
pnpm add chardet

Overview

Character encoding detector

Index

Variables

variable _default

const _default: {
analyse: (buffer: Uint8Array) => Match[];
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) => Match[];

      function detect

      detect: (buffer: Uint8Array) => string | null;

        function detectFile

        detectFile: (filepath: string, opts?: Options) => Promise<DetectResult>;

          function detectFileSync

          detectFileSync: (filepath: string, opts?: Options) => DetectResult;

            Package Files (1)

            Dependencies (0)

            No dependencies.

            Dev Dependencies (10)

            Peer Dependencies (0)

            No peer dependencies.

            Badge

            To add a badge like this onejsDocs.io badgeto 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>