UNPKG

@curvenote/schema

Version:

Schema and markdown parser for @curvenote/editor

13 lines 526 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.fromYAML = void 0; const js_yaml_1 = __importDefault(require("js-yaml")); const json_1 = require("../json"); function fromYAML(input, useSchema) { return (0, json_1.fromJSON)(JSON.stringify(js_yaml_1.default.load(input)), useSchema); } exports.fromYAML = fromYAML; //# sourceMappingURL=index.js.map