tn-numpad
v2.1.2
Published
Leading zeroes to a number
Downloads
33
Readme
Usage
import { numpad } from 'tn-numpad'
numpad(-5.7556, 3, '0') // -005.7556
numpad(5.7556, 3, '0', 2) // 005.76
numpad(5, 3, '0', 2) // 005.00
numpad(-25.7799, 4, 'x', 2) // -xx25.78