leftpad

left pad numbers

Use the built-in String.padStart function instead
Last updated 8 years ago by tmcw .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install leftpad 
SYNC missed versions from official npm registry.

leftpad

CircleCI

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

var leftpad = require('leftpad');

leftpad(5, 10);
'0000000005'

Current Tags

  • 0.0.1                                ...           latest (8 years ago)

2 Versions

  • 0.0.1 [deprecated]           ...           8 years ago
  • 0.0.0 [deprecated]           ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |