jstotoml Library has one function toToml that will convert JavaScript object to TOML string. Library goes without ANY dependencies. npm i jstotoml