mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-14 11:45:41 +00:00
8 lines
166 B
JavaScript
8 lines
166 B
JavaScript
import fs from 'fs';
|
|
|
|
export function getCustomData(file) {
|
|
const path = `${process.env.dataDirectory}/${file}`;
|
|
|
|
return JSON.parse(fs.readFileSync(path));
|
|
}
|