devsite/node_modules/@iarna/toml/lib/format-num.js

7 lines
120 B
JavaScript
Raw Normal View History

2024-07-08 01:49:38 +00:00
'use strict'
module.exports = (d, num) => {
num = String(num)
while (num.length < d) num = '0' + num
return num
}