Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 316 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 316 Bytes

num-pad

Num Pad is a simple number pad function. It adds a 0 infront of numbers less then 10.

Installing

npm install --save num-pad

Using:

const numPad = require("num-pad");

const april = numPad(4);
april === "04";

const december = numPad(12);
december === "12";