Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

This package has been deprecated

Author message:

Use the built-in String.padStart function instead

leftpad

0.0.1 • Public • Published

leftpad

CircleCI

Like the pad module, except I'll remember the argument order.

var leftpad = require('leftpad');
 
leftpad(5, 10);
'0000000005'

install

npm i leftpad

Downloadsweekly downloads

6,979

version

0.0.1

license

BSD-3-Clause

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability