cf-left-pad

0.0.25 • Public • Published

cf-left-pad

String left pad.

Install

$ npm install cf-left-pad

Usage

leftpad = require('cf-left-pad')
 
leftpad('foo', 5)
// => "  foo"
 
leftpad('foobar', 6)
// => "foobar"
 
leftpad(1, 2, 0)
// => "01"

Package Sidebar

Install

npm i cf-left-pad

Weekly Downloads

1

Version

0.0.25

License

WTFPL

Last publish

Collaborators

  • otomato