JSPM

@types/slice-ansi

5.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 844967
  • Score
    100M100P100Q20549F
  • License MIT

TypeScript definitions for slice-ansi

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/slice-ansi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Installation

    npm install --save @types/slice-ansi

    Summary

    This package contains type definitions for slice-ansi (https://github.com/chalk/slice-ansi#readme).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/slice-ansi.

    index.d.ts

    /**
     * Slice a string with ANSI escape codes
     * @param input string with ANSI escape codes. Like one styled by chalk
     * @param beginSlice Zero-based index at which to begin the slice
     * @param [endSlice] Zero-based index at which to end the slice
     */
    export default function sliceAnsi(input: string, beginSlice: number, endSlice?: number): string;
    

    Additional Details

    • Last updated: Wed, 18 Oct 2023 11:45:06 GMT
    • Dependencies: none

    Credits

    These definitions were written by Dan Imhoff, and Piotr Błażejewicz.