1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00
verdaccio/website/utils.js
Juan Picado @jotadeveloper 5840eb9d5e
docs(website): add team member page
it might be incomplete
2018-08-04 17:09:03 +02:00

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
};