File "read-json.js"
Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/usr/lib/node_modules/npm/node_modules/libnpmversion/lib/read-json.js
File size: 335 bytes
MIME-type: text/plain
Charset: utf-8
// can't use read-package-json-fast, because we want to ensure
// that we make as few changes as possible, even for safety issues.
const { promisify } = require('util')
const readFile = promisify(require('fs').readFile)
const parse = require('json-parse-even-better-errors')
module.exports = async path => parse(await readFile(path))