Installation
npm install --save @types/replacestream
Summary
This package contains type definitions for replacestream (https://github.com/eugeneware/replacestream#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/replacestream.
declare namespace ReplaceStream {
interface Options {
limit?: number | undefined;
encoding?: string | undefined;
maxMatchLen?: number | undefined;
ignoreCase?: boolean | undefined;
regExpOptions?: string | undefined;
}
type ReplaceFunction = (match: string, p1: string, offset: number, string: string) => string;
}
declare function ReplaceStream(
search: RegExp | string,
replace: ReplaceStream.ReplaceFunction | string,
options?: ReplaceStream.Options,
): any;
export = ReplaceStream;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Piotr Roszatycki.