Installation
npm install --save @types/wrap-ansi
Summary
This package contains type definitions for wrap-ansi (https://www.npmjs.com/package/wrap-ansi).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wrap-ansi.
declare function wrapAnsi(input: string, columns: number, options?: wrapAnsi.Options): string;
declare namespace wrapAnsi {
interface Options {
hard?: boolean | undefined;
trim?: boolean | undefined;
wordWrap?: boolean | undefined;
}
}
export default wrapAnsi;
Additional Details
- Last updated: Wed, 18 Oct 2023 18:04:04 GMT
- Dependencies: none
Credits
These definitions were written by Klaus Reimer, and Piotr Błażejewicz.