read-package-json
read-package-json copied to clipboard
make name / version optional
For projects that won't be published as npm modules, but that instead use npm only as a means for installing local dependencies (think of the package.json in this case like a Gemfile) the currently required name and version fields are unnecessary. It would be great if they were optional.
same goes for the readme field. Idk why it is passing the content of a hole markdown file into a string.
The name and version field really do need to be required at this time because otherwise npm has no way to know what's already in the tree when it comes time to update/install new deps.