0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-01-12 22:29:06 +00:00
renovatebot_renovate/lib/util/toml.ts
Sergei Zharinov d82ff3659f
fix: Use toml-eslint-parser instead of @iarna/toml (#25594)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-11-06 15:34:52 +00:00

6 lines
185 B
TypeScript

import { getStaticTOMLValue, parseTOML } from 'toml-eslint-parser';
export function parse(input: string): unknown {
const ast = parseTOML(input);
return getStaticTOMLValue(ast);
}