UNPKG

@stryke/fs

Version:

A package containing various file system utilities that expand the functionality of NodeJs's built-in `fs` module.

2 lines (1 loc) 302 B
import{readFile as t,readFileSync as r}from"./read-file";export function readYamlFileSync(e,n){const a=r(e),{load:o}=require("@zkochan/js-yaml");return o(a,{...n,filename:e})}export async function readYamlFile(e,n){const a=await t(e),{load:o}=require("@zkochan/js-yaml");return o(a,{...n,filename:e})}