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'

Package Sidebar

Install

npm i leftpad

Weekly Downloads

6,552

Version

0.0.1

License

BSD-3-Clause

Last publish

Collaborators

  • tmcw