Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/cliffy/table/consume_words.ts

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Latest
import * as cliffy from "https://deno.land/x/cliffy@v1.0.0-rc.7/table/consume_words.ts";

Functions

Consumes the maximum amount of chars from a string which is not longer than given length, ignoring ANSI codes when calculating the length. This function returns at least one char.

Consumes the maximum amount of words from a string which is not longer than given length. This function returns at least one word.