package.json
noun
say it: “PAK-ij dot JAY-sahn” /ˈpækɪdʒ dɑt ˈdʒeɪsɑn/ or “PAK-ij dot JAY-sun” /ˈpækɪdʒ dɑt ˈdʒeɪsən/
A file named package.json at the top of a Node project that lists its name, its scripts and the packages it needs; "type": "module" in it turns on import and export.
What is package.json in JavaScript?
package.json — A project file containing package metadata, scripts, dependencies, and configuration.
In a sentence
- “Adding "type": "module" to package.json told Node to treat every .js file in the project as a module.”
Level: Journeyman · More JavaScript terms at this level
Updated