@lucid-softworks/string-wrap
v0.1.0
Published
Wrap text to a maximum width while preserving words.
Maintainers
Readme
@lucid-softworks/string-wrap
Wrap text to a maximum width while preserving words.
import { wrap } from "@lucid-softworks/string-wrap";
wrap("one two three", 7); // ["one two", "three"]See the exported types and tests for exact edge-case behavior.
