dc_leftpad_test
v0.0.1
Published
Pad a string to a given length with a specified padding.
Downloads
3
Readme
dc_leftpad
A simple package to pad a string to at least a given length with a specified padding.
Basic Usage
var leftpad = require("dc_leftpad");
/**
* Pass string to pad, minimum required length
* and string to use for padding
**/
leftpad("bcd", 4, "a"); //"abcd"