Pad a number
$ npm install --save padster
var pad = require("padster")
pad(80, 6, "-")
Name | Type | Description |
---|---|---|
number | String or Number |
The number you want to pad |
size | Number |
The length (or amount of padding) you want the result to have |
paddingChar | String |
The character you want to padd the number with |