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

x/cliffy/packages/table/lib/utils.ts>consumeWords

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
function consumeWords
import { consumeWords } from "https://deno.land/x/cliffy@v0.4.0/packages/table/lib/utils.ts";

Get next words from the beginning of {content} until all words have a length lower then {length}.

Parameters

length: number

Max length of all words.

content: string

The text content.

Returns

string