talira

The package manager for JavaScript

open coreArtistic-2.0free

npm is JavaScript's package manager and the world's largest software registry. It has three parts: the public registry, a database of JavaScript packages and their metadata; the npm command-line tool, which ships with Node.js and installs, publishes and audits packages, runs package scripts and manages workspaces; and the npmjs.com website for finding packages and managing accounts and organizations. Public packages are free to publish and install, and a paid plan adds private packages for a user or an organization. Its security features include audit reports, provenance statements, trusted publishing with OIDC and signed registry responses. The CLI is open source under the Artistic License 2.0; npm is part of GitHub.

Problems it solves

  • install the JavaScript libraries my project depends on with exact versions in a lock file
  • publish my JavaScript library so anyone can install it
  • share private packages between our company's repositories
  • find out which of my dependencies have known security vulnerabilities
  • run build and test scripts the same way on every developer's machine
  • manage several packages in one repository with shared dependencies
  • prove where a published package was built so users can trust it
  • publish packages from CI without storing a long-lived token

Features

  • the public npm registry of JavaScript packages
  • npm install, ci, update and uninstall with package-lock.json
  • npx to run package binaries
  • workspaces for monorepos
  • npm audit security reports
  • provenance statements and trusted publishing with OIDC
  • private packages and organizations with teams on paid plans
  • scoped packages

Capabilities

Has an APIplan not known
Has a command line toolplan not known

Alternatives

The same job

These do what npm does.

  1. pnpm Fast, disk space efficient package manager
  2. Yarn Safe, stable, reproducible projects
  3. Bun Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
  4. Poetry Python dependency management and packaging made easy
  5. NuGet The package manager for .NET
  6. Cargo The Rust package manager

Compare npm with the top 3