• Version 5.0.0
  • Published
  • 3.22 kB
  • No dependencies
  • MIT license


npm i @types/slice-ansi
yarn add @types/slice-ansi
pnpm add @types/slice-ansi


TypeScript definitions for slice-ansi




function sliceAnsi

sliceAnsi: (input: string, beginSlice: number, endSlice?: number) => string;
  • Slice a string with ANSI escape codes

    Parameter input

    string with ANSI escape codes. Like one styled by chalk

    Parameter beginSlice

    Zero-based index at which to begin the slice

    Parameter endSlice

    Zero-based index at which to end the slice

Package Files (1)

Dependencies (0)

No dependencies.

Dev Dependencies (0)

No dev dependencies.

Peer Dependencies (0)

No peer dependencies.


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/slice-ansi.

  • Markdown
  • HTML
    <a href="https://www.jsdocs.io/package/@types/slice-ansi"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>