Socket
Socket
Sign inDemoInstall

npm

Package Overview
Dependencies
Maintainers
6
Versions
552
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm

a package manager for JavaScript


Version published
Weekly downloads
6M
increased by2.33%
Maintainers
6
Weekly downloads
 
Created

What is npm?

The npm package 'npm' is the package manager for Node.js. It allows users to install, update, and manage dependencies for Node.js applications. It also provides tools for package discovery, publishing, and managing a local development environment.

What are npm's main functionalities?

Package Installation

Installs the 'express' package and its dependencies into the node_modules directory.

npm install express

Package Update

Updates the 'lodash' package to the latest version according to the versioning in package.json.

npm update lodash

Package Removal

Removes the 'moment' package from the node_modules directory and updates the package.json.

npm uninstall moment

Listing Installed Packages

Lists the top-level packages installed in the node_modules directory.

npm list --depth=0

Running Scripts

Runs the 'test' script specified in the package.json file.

npm run test

Publishing a Package

Publishes the current package to the npm registry, making it available for others to install.

npm publish

Other packages similar to npm

Keywords

FAQs

Package last updated on 18 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc