@types/chardet

  • Version 0.8.1
  • Published
  • 5.63 kB
  • 1 dependency
  • MIT license

Install

npm i @types/chardet
yarn add @types/chardet
pnpm add @types/chardet

Overview

TypeScript definitions for chardet

Index

Functions

function detect

detect: (buf: any, opts?: Options) => string | null;

    function detectAll

    detectAll: (buf: any, opts?: Options) => Confidence[] | null;

      function detectFile

      detectFile: {
      (path: string, cb: (err: any, result: string | null) => void): void;
      (path: string, opts: Options, cb: (err: any, result: string) => void): void;
      };

        function detectFileAll

        detectFileAll: {
        (path: string, cb: (err: any, result: Confidence[] | null) => void): void;
        (
        path: string,
        opts: Options,
        cb: (err: any, result: Confidence[]) => void
        ): void;
        };

          function detectFileAllSync

          detectFileAllSync: (path: string, opts?: Options) => Confidence[] | null;

            function detectFileSync

            detectFileSync: (path: string, opts?: Options) => string | null;

              Interfaces

              interface Confidence

              interface Confidence {}

                property confidence

                confidence: number;

                  property lang

                  lang?: string | undefined;

                    property name

                    name: string;

                      interface Options

                      interface Options {}

                        property returnAllMatches

                        returnAllMatches?: boolean | undefined;

                          property sampleSize

                          sampleSize?: number | undefined;

                            Package Files (1)

                            Dependencies (1)

                            Dev Dependencies (0)

                            No dev dependencies.

                            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/@types/chardet.

                            • Markdown
                              [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/chardet)
                            • HTML
                              <a href="https://www.jsdocs.io/package/@types/chardet"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>