left-padding
v1.0.0
Published
left pad for string or number
Downloads
3
Maintainers
Readme
left-pading
字符串或者数字的左补齐
usage
const pad = require('left-padding')
console.log('hello', 8)
// ' hello'
console.log(pad(1, 3))
// ' 13'
console.log(pad(11, 3), '0')
// '013'