@cto.af/string-width - v4.0.2
    Preparing search index...

    Interface WidthBreak

    When breaking a string into max-cell lengths, these are the pieces. last will not be included until the last segment, then it will be true.

    interface WidthBreak {
        cells: number;
        last?: boolean;
        string: string;
    }
    Index

    Properties

    Properties

    cells: number

    Number of display cells for the cluster.

    last?: boolean

    If specified and true, this is the last piece.

    string: string

    Multiple grapheme clusters, but never starts with a combining character unless the input string started with one.