Javascript padLicense

This functions returns the input string padded on the left, the right, or both sides to the specified padding length. If the optional argument “pad” is not supplied, the input is padded with spaces, otherwise it is padded with characters from “pad” up to the “len” length.

Source code for webtoolkit.pad.js