UNPKG

@visulima/fs

Version:

Human friendly file system utilities for Node.js

13 lines (10 loc) 532 B
import { stringify } from 'yaml'; import writeFileSync from './writeFileSync-mMGYqOc8.mjs'; var __defProp = Object.defineProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); function writeYamlSync(path, data, replacer, options) { const content = typeof replacer === "function" || Array.isArray(replacer) ? stringify(data, replacer, options) : stringify(data, replacer); writeFileSync(path, content); } __name(writeYamlSync, "writeYamlSync"); export { writeYamlSync as default };