Synchronously reads and parses a package.json file.
The path to the package.json file. Defaults to './package.json'.
The encoding to use when reading the file. Defaults to 'utf-8'.
The parsed package.json content as a PackageJson object.
If the JSON content is invalid.
If the file cannot be read or does not exist.
Synchronously reads and parses a package.json file.