Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.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