mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
12 lines
243 B
JavaScript
12 lines
243 B
JavaScript
|
const path = require("path");
|
||
|
const fs = require("fs");
|
||
|
const parseYaml = require("js-yaml").safeLoad;
|
||
|
|
||
|
function loadYaml(fsPath) {
|
||
|
return parseYaml(fs.readFileSync(path.join(__dirname, fsPath), "utf8"));
|
||
|
}
|
||
|
|
||
|
module.exports = {
|
||
|
loadYaml
|
||
|
};
|