mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-11 18:45:41 +00:00
7 lines
225 B
TypeScript
7 lines
225 B
TypeScript
import path from 'path'
|
|
import {promises as fs} from 'fs'
|
|
|
|
export async function getLocalData() {
|
|
const jsonDirectory = path.join(process.cwd(), 'json')
|
|
return await fs.readFile(jsonDirectory + '/data.json', 'utf8')
|
|
} |