String Decoders

This StringDecoder (About Modules) module implements helper for string decoding tasks.

How to use the module:

var line = 'Mary had a little lamb. His fleece was black as coal, yeah. Everywhere the child went.';
    lineSize = 30,
    rows = line.length / 30 + 1;
var wrappedLine = require('StringDecoders').fitWords(longString,rowCount,lineSize);

// fitWords is now a string with '\n'

This page is auto-generated from GitHub. If you see any mistakes or have suggestions, please let us know.