devsite/node_modules/@iarna/toml/lib/format-num.js
2024-07-07 18:49:38 -07:00

7 lines
120 B
JavaScript
Executable File

'use strict'
module.exports = (d, num) => {
num = String(num)
while (num.length < d) num = '0' + num
return num
}