Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EncodingService

Hierarchy

  • EncodingService

Index

Constructors

Methods

  • detectEncodingByBOMFromBuffer(buffer: Buffer, bytesRead: number): undefined | "utf8bom" | "utf16le" | "utf16be"
  • exists(encoding: string): boolean
  • guessEncodingByBuffer(buffer: Buffer): Promise<undefined | string>
  • toIconvEncoding(encoding?: string): string
  • toResourceEncoding(encoding: string, options: { overwriteEncoding?: boolean; read: any }): Promise<ResourceEncoding>