Skip to content

thangngoc89/left-pad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

left-pad

String left pad.

Install

$ npm install thangngoc89/left-pad

Usage

leftpad = require('left-pad')

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

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

leftpad(1, 2, 0)
// => "01"

About

High performance left-pad using binary operator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published