What are these prefixes for the prefix used in package.json?

I found that these properties are underscore prefix in package.json. What are they used for? why is the underscore prefix for properties?

"_from": "react-scripts@0.9.3", "_id": "react-scripts@0.9.3", "_inCache": true, "_location": "/react-scripts", "_nodeVersion": "6.0.0", "_npmOperationalInternal": { "host": "packages-18-east.internal.npmjs.com", "tmp": "tmp/react-scripts-0.9.3.tgz_1488303928068_0.6415497597772628" }, "_npmUser": { "name": "gaearon", "email": "dan.abramov@gmail.com" }, 
+2
javascript npm reactjs
source share
2 answers

This is metadata reserved for package registries. All properties starting with _ or $ are reserved for package registries for their own use. wiki, the general section "Reserved Properties" explains this.

+1
source share

The underline is the reserved property package.json, it is used for reserved keys. So, in Documentation package.json , we cannot start the name with an underscore.

0
source share

All Articles