npm

package.json

A package manifest describes a project and selected Node/npm behavior. Use private for non-published apps, type for .js mode, scripts for named commands and engines for declared compatibility.

Formal Syntax & Structure

nodejs syntaxnodejs
JSON object

Return Value

manifest object

Configuration read by the tooling; no direct return value.

Working Example

Example Snippetnodejs
{"name":"book-report","version":"1.0.0","private":true,"type":"module"}
Node.js Reference