Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 239 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 239 Bytes

right-pad

String right pad

Install

$ npm install right-pad

Usage

var rightpad = require('right-pad')

rightpad('foo', 5)
// => "foo  "

rightpad('foobar', 6)
// => "foobar"

rightpad(1, 2, 0)
// => "10"