Your IP : 18.224.44.207


Current Path : /opt/alt/alt-nodejs20/root/lib/node_modules/npm/node_modules/libnpmversion/lib/
Upload File :
Current File : //opt/alt/alt-nodejs20/root/lib/node_modules/npm/node_modules/libnpmversion/lib/read-json.js

// 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 { readFile } = require('node:fs/promises')
const parse = require('json-parse-even-better-errors')

module.exports = async path => parse(await readFile(path))

?>