pad-zero
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

Pad Zeros

Add zero symbols at the beginning of number

Installation

npm install pad-zero

Usage

Example:

import { padZero } from "pad-zero";

console.log(padZero(2, 9)); // 09
console.log(padZero(4, 47)); // 0047
console.log(padZero(4)(47)); // 0047 (works with curring)

Readme

Keywords

none

Package Sidebar

Install

npm i pad-zero

Weekly Downloads

1

Version

1.0.8

License

ISC

Unpacked Size

4.04 kB

Total Files

8

Last publish

Collaborators

  • goremchik