import { consumeWords } from "https://deno.land/x/cliffy@v1.0.0-rc.1/table/consume_words.ts";
Consumes the maximum amount of words from a string which is not longer than given length. This function returns at least one word.
import { consumeWords } from "./mod.ts";
const str = consumeWords(9, "This is an example."); // returns: "This is"