wordwrap-component

wordwrap util

npm install wordwrap-component
1 downloads in the last week
4 downloads in the last month

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

npm loves you