# 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](https://www.ask-codey.com/glossary?category=javascript&level=3)

Updated: November 9, 2026

## In other subjects

- [package.json in Node.js](https://www.ask-codey.com/glossary/package-json-nodejs)

Source: https://www.ask-codey.com/glossary/package-json
