"Fossies" - the Fresh Open Source Software Archive

Member "node-v12.18.4-win-x64/node_modules/npm/node_modules/iconv-lite/lib/index.d.ts" (14 Feb 2020, 1006 Bytes) of package /windows/www/node-v12.18.4-win-x64.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TypeScript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /*---------------------------------------------------------------------------------------------
    2  *  Copyright (c) Microsoft Corporation. All rights reserved.
    3  *  Licensed under the MIT License.
    4  *  REQUIREMENT: This definition is dependent on the @types/node definition.
    5  *  Install with `npm install @types/node --save-dev`
    6  *--------------------------------------------------------------------------------------------*/
    7 
    8 declare module 'iconv-lite' {
    9     export function decode(buffer: Buffer, encoding: string, options?: Options): string;
   10 
   11     export function encode(content: string, encoding: string, options?: Options): Buffer;
   12 
   13     export function encodingExists(encoding: string): boolean;
   14 
   15     export function decodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream;
   16 
   17     export function encodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream;
   18 }
   19 
   20 export interface Options {
   21     stripBOM?: boolean;
   22     addBOM?: boolean;
   23     defaultEncoding?: string;
   24 }