(xpath)
| 2 | import { brotliDecompressSync } from 'zlib' |
| 3 | |
| 4 | export default function readJsonFile(xpath) { |
| 5 | return JSON.parse(fs.readFileSync(xpath, 'utf8')) |
| 6 | } |
| 7 | |
| 8 | export function readCompressedJsonFile(xpath) { |
| 9 | if (!xpath.endsWith('.br')) { |
no outgoing calls
no test coverage detected