UNPKG

prettierx

Version:

prettierX - a less opinionated fork of the Prettier code formatter

13 lines (10 loc) 262 B
"use strict"; const parse = require("@iarna/toml/parse-string"); module.exports = function (filePath, content) { try { return parse(content); } catch (error) { error.message = `TOML Error in ${filePath}:\n${error.message}`; throw error; } };