0.0.1 • Published 6 years ago
left-pad-es6 v0.0.1
left-pad-es6
ES6 implementation of the left-pad. NOTE: This is not a drop-in replacement.
Install
$ npm install left-pad-es6
Usage
const leftPad = require('left-pad-es6')
leftPad('foo', 5)
// => " foo"
leftPad('foobar', 6)
// => "foobar"
leftPad(1, 2, '0')
// => "01"
leftPad(17, 5, 0)
// => "00017"
0.0.1
6 years ago