PHPackages                             pamald/pamald-npm - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. pamald/pamald-npm

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pamald/pamald-npm
=================

Collects lock diff information from packages-lock.json files.

1.x-dev(7mo ago)001LGPL-2.0-or-laterPHPPHP &gt;=8.3

Since Oct 12Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/pamald/pamald-npm)[ Packagist](https://packagist.org/packages/pamald/pamald-npm)[ Docs](https://github.com/pamald/pamald)[ RSS](/packages/pamald-pamald-npm/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelogDependencies (18)Versions (1)Used By (1)

pamald NPM
==========

[](#pamald-npm)

[![CircleCI](https://camo.githubusercontent.com/253a89384da1cc41201641a237ec589125efad9884a048eafe093357446a2449/68747470733a2f2f636972636c6563692e636f6d2f67682f70616d616c642f70616d616c642d6e706d2f747265652f312e782e7376673f7374796c653d737667)](https://circleci.com/gh/pamald/pamald-npm/?branch=1.x)[![codecov](https://camo.githubusercontent.com/30957a143d9ec5e12907a568cd62b386f15044e2c389eab2af88471ea744e818/68747470733a2f2f636f6465636f762e696f2f67682f70616d616c642f70616d616c642d6e706d2f6272616e63682f312e782f67726170682f62616467652e7376673f746f6b656e3d48534631364f47507972)](https://app.codecov.io/gh/pamald/pamald-npm/branch/1.x)

**pamald-npm** is a PHP library that collects dependency information from `package-lock.json` files. It is the NPM-specific implementation of the [pamald/pamald](https://github.com/pamald/pamald) project, enabling detailed analysis of NPM packages.

Project Goals
-------------

[](#project-goals)

The library aims to collect and analyze NPM project dependencies from `package-lock.json` and `package.json` files in a structured way. This is particularly useful for:

- **Tracking dependency changes**: Easily identify package updates, new dependencies, or removed packages
- **Security audits**: Quick overview of package versions in use
- **CI/CD pipelines**: Automated dependency analysis during build processes
- **Documentation**: Generate accurate dependency lists for projects
- **Prepare Git Commit Message**: Automatically generate a commit message with dependency information

Why is it Useful?
-----------------

[](#why-is-it-useful)

### 1. Comprehensive Dependency Information

[](#1-comprehensive-dependency-information)

The library collects not only packages, but also:

- **NodeJS version** requirements
- **package** requirements
- **Distinguishes between direct and transitive dependencies**
- **Groups by production and development environments**

### 3. Integration with the pamald Ecosystem

[](#3-integration-with-the-pamald-ecosystem)

The library implements the [pamald/pamald](https://github.com/pamald/pamald) base library interfaces, making it easily integrable with other pamald tools (composer, yarn) and Robo tasks.

Usage
-----

[](#usage)

```
