Javascript Package - Dependency


package Dependency in Node.

Dependency are declared/added in package.json:

Type of dependency relationship


Installation of all dependencies

It will get the dependency from the package.json file

Installation of all dependency of a cloned project.

  • for dev
git clone url
yarn install
# or
npm install
npm ci

Add a dependency to your project



To not include a dependency, you need to declare it as peerDependency

Discover More
Welcome From Browser
How to develop, publish and use a javascript library ?

A step by step tutorial on how to create and publish a javascript library
Javascript Module - Dependency Graph

This page is the dependency graph between module. The dependency graph is build from a single module (called the entry point) for a ESM module with the import statement for a commonJs module (node...
Javascript Package

in Javascript. A Package is a distribution format that wraps: one or several Module. along side the package.json (called a manifest) which describes the package (its version, ...) npmpackage.json...
Javascript Package - Dependencies

Dependencies are dependency in the code used to build the dependency graph. These dependency packages are required by your application in production If an other package adds your package as a dependency,...
Javascript Package - Dependency Graph

dependency graph in javascript The dependency graph is built with the dependencies defined as dependencies in the package.json
Javascript Package - Dev Dependency

A dev dependency is a build and test dependency. They are not needed in the dependency graph (bundler, test harnesses or transpilers) will not be downloaded when an other package uses your package...
Javascript Package - bundled Dependencies

bundled Dependencies are an array of dependencies that will be bundled when publishing the package with npm pack
WebPack - Dependency

in WebPack To exclude a package with webpack, you have to: declare it as peerDependency) to define its corresponding global Example with JQuery that is available on the global variable...
Card Puncher Data Processing
What are Peer Dependencies?

Peer Dependencies is a dependency relationship indicating that the dependencies should be provided by parent in the dependency tree. They are provided by the parent. ie a framework (Jquery, ...) ...

Share this page:
Follow us:
Task Runner