1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Files
docs/lib/read-json-file.js
Kevin Heis 8a56437c93 Pretty format (#20352)
* Update prettier flow to include JS

* Run prettier

* ...run prettier
2021-07-14 14:35:01 -07:00

7 lines
171 B
JavaScript

import fs from 'fs'
import path from 'path'
export default function readJsonFile(xpath) {
return JSON.parse(fs.readFileSync(path.join(process.cwd(), xpath), 'utf8'))
}