UNPKG

@flourd/toml

Version:

Familiar parse and stringify for TOML, with a CLI to convert to/from JSON.

7 lines (6 loc) 120 B
'use strict' module.exports = (d, num) => { num = String(num) while (num.length < d) num = '0' + num return num }