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://dotland.deno.dev/x/cliffy@v0.6.0/packages/table/lib/utils.ts";

Get next words from the beginning of [content] until all words have a length lower or equal then [length].

Parameters

length: number

Max length of all words.

content: string

The text content.

Returns

string