@stryke/fs
Version:
A package containing various file system utilities that expand the functionality of NodeJs's built-in `fs` module.
28 lines (27 loc) • 579 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.readYamlFile = readYamlFile;
exports.readYamlFileSync = readYamlFileSync;
var _readFile = require("./read-file.cjs");
function readYamlFileSync(e, n) {
const a = (0, _readFile.readFileSync)(e),
{
load: o
} = require("@zkochan/js-yaml");
return o(a, {
...n,
filename: e
});
}
async function readYamlFile(e, n) {
const a = await (0, _readFile.readFile)(e),
{
load: o
} = require("@zkochan/js-yaml");
return o(a, {
...n,
filename: e
});
}