Skip to content

AMHOL/jQuery.pad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

jQuery.pad

jQuery plugin for string padding

// time = 01:05 $.lpad((new Date()).getHours(), 2, '0'); // 01 $.lpad((new Date()).getMinutes(), 2, '0'); // 05 $.rpad('Hello world!', 14, '!'); // Hello world!!! $.pad('337', 4, '1', 'left'); // 1337 console.log("This: will,\nBe: nicely formatted!");
This:          will,
Be:            nicely formatted!

About

jQuery plugin for string padding

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published