Skip to content

FOSS-Archives/right-pad

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%