mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-14 20:05:42 +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));
|
||
|
}
|