I am the maintainer of an npm package and I've noticed that there are entries being added to package.json with underscore characters. These entries include information like the package's raw URL, specifications, and locations.
"_args": [
[
{
"raw": "some-cool-package@https://registry.npmjs.org/some-cool-package/-/some-cool-package-2.2.0.tgz",
"scope": null,
"escapedName": "some-cool-package",
"name": "some-cool-package",
"rawSpec": "https://registry.npmjs.org/some-cool-package/-/some-cool-package-2.2.0.tgz",
"spec": "https://registry.npmjs.org/some-cool-package/-/some-cool-package-2.2.0.tgz",
"type": "remote"
},
"C:\\Users\\mike\\Documents\\mycompany"
]
],
"_from": "some-cool-package@>=2.2.0 <3.0.0",
"_id": "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="14677b797139777b7b78396475777f75737154263a263a24">[email protected]</a>",
"_inCache": true,
"_location": "/some-cool-package",
"_phantomChildren": {},
"_requested": {
"raw": "some-cool-package@https://registry.npmjs.org/some-cool-package/-/some-cool-package-2.2.0.tgz",
"scope": null,
"escapedName": "some-cool-package",
"name": "some-cool-package",
"rawSpec": "https://registry.npmjs.org/some-cool-package/-/some-cool-package-2.2.0.tgz",
"spec": "https://registry.npmjs.org/some-cool-package/-/some-cool-package-2.2.0.tgz",
"type": "remote"
},
"_requiredBy": [
"/"
],
"_resolved": "https://registry.npmjs.org/some-cool-package/-/some-cool-package-2.2.0.tgz",
"_shasum": "f0d5d982c15d63f653e48fff552400eb241b7407",
"_shrinkwrap": null,
"_spec": "some-cool-package@https://registry.npmjs.org/some-cool-package/-/some-cool-package-2.2.0.tgz",
"_where": "C:\\Users\\mike\\Documents\\mycompany",
I'm curious as to what is adding these entries to my package.json file.
Should I keep or remove these entries when I publish my packages to the public npm registry?