zeros-masker

1.0.1 • Public • Published

Zeros

Build Status

Pad a number with zeros.

Usage

var zeros = require("zeros-masker")

zeros(123, "0000")  // "0123"

zeros(1234, "0000") // "1234"

zeros(1234, "000")  // "1234"

zeros(123, 4)       // "0123"

zeros(1234, 4)      // "1234"

zeros(1234, 3)      // "1234"

Readme

Keywords

Package Sidebar

Install

npm i zeros-masker

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • adrianblynch