zfill
simple function to pad a number with zeroes
Last updated 7 years ago by superjoe .
BSD · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install zfill 
SYNC missed versions from official npm registry.

zfill

Usage

var zfill = require('zfill');

console.log(zfill(9, 2)); // prints '09'
console.log(zfill(1234, 3)); // prints '1234'

Current Tags

  • 0.0.2                                ...           latest (7 years ago)

2 Versions

  • 0.0.2                                ...           7 years ago
  • 0.0.1                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 12
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (343)

Copyright 2014 - 2016 © taobao.org |