Skip to content

Collection of handy online tools for developers, with great UX.

227 B
Raw Blame
import { parse as parseToml } from 'iarna-toml-esm';
import { isNotThrowing } from '../../utils/boolean';

export { isValidToml };

function isValidToml(toml: string): boolean {
  return isNotThrowing(() => parseToml(toml));
}