node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…

wordwrap-component

wordwrap util

wordwrap

wordwrap

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

Tests

# make test

MIT