UNPKG

markdownlint-cli2

Version:

A fast, flexible, configuration-based command-line interface for linting Markdown/CommonMark files with the `markdownlint` library

13 lines (9 loc) 276 B
// @ts-check import yaml from "js-yaml"; /** * Parses a YAML string, returning the corresponding object. * @param {string} text String to parse as YAML. * @returns {object} Corresponding object. */ const yamlParse = (text) => yaml.load(text); export default yamlParse;