Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

yields/wordwrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wordwrap

wordwrap

Installation

$ component install yields/wordwrap

API

wordwrap(str, max, eol)

wordwrap('Hello, World!', 5, '\n');
// > 'Hello\n, Wor\nld!'

wordwrap(str, max)

wordwrap('Hello, World!', 5);
// > 'Hello\n, Wor\nld!'

Tests

# make test

License

MIT

About

wordwrap component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published