mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-23 00:25:40 +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));
|
|
}
|