readJsonFile = async (
  filepath,
  { readFile: read = nodeFs.promises.readFile } = {}
) => {
  const json = await read(filepath)
  return JSON.parse(`${json}`)
}
Reads a JSON file

@template [T=unknown] Default is `unknown`
@param {string | URL} filepath
@param {WithReadFile} opts
@returns {Promise<T>} JSON data
@internal