Tooling concepts

Separate runtime and development dependencies

Try the free JavaScript compiler

Runtime dependencies provide code required when a package runs; development dependencies support building, testing or authoring. npm resolves both according to the manifest and lockfile. Build before pruning development tooling. Do not move required runtime modules into devDependencies to shrink installs. Example type: bash. Context: npm-lab. Expected observation: The manifest includes @lesson/units.. See local fixture evidence.

Formal Syntax & Structure

javascript syntaxjavascript
npm pkg get dependencies

Working Example

Example Snippetjavascript
npm pkg get dependencies
JavaScript Reference