UNPKG

num-pad

Version:

Simple function to pad the passed in number, if less than 10 return 0<num> otherwise just returns the number.

21 lines (14 loc) 316 B
# num-pad # Num Pad is a simple number pad function. It adds a 0 infront of numbers less then 10. ## Installing ## ```shell npm install --save num-pad ``` ## Using: ## ```javascript const numPad = require("num-pad"); const april = numPad(4); april === "04"; const december = numPad(12); december === "12"; ```