Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
This Python package converts a package-lock.json
file into a CSV file containing detailed information about project dependencies, including their versions, integrity, and metadata. It also fetches the latest versions of the packages from the NPM registry.
package-lock.json
into a structured DataFrame using Pandas.dependencies.csv
.Before running the script, ensure you have:
pip install pandas requests
The script reads the package-lock.json
file and parses it into a Pandas DataFrame for easy manipulation.
name
→ Project
version
→ Current Version
dependencies
→ dict
Latest Version
Integrity
Requires
Dependencies
hasDependencies
(boolean flag indicating whether a dependency has its own dependencies)Extracts and processes data from the dependencies
dictionary:
For each package, the script queries the NPM registry API (https://registry.npmjs.org/:package
) to fetch the latest available version and populates the Latest Version
column.
The final DataFrame is saved as a CSV file named dependencies.csv
.
depster path/to/package-lock.json
The output file, dependencies.csv
, will be created in the same directory as the script.
The resulting CSV file will include the following columns:
Packages | Project | Current Version | Latest Version | Integrity | Requires | Dependencies | hasDependencies |
---|---|---|---|---|---|---|---|
1 | Example1 | 1.0.0 | 1.2.0 | abc123... | dep1: ^1.0.0, dep2: | dep3: 1.1.0, dep4: | True |
package-lock.json
file.This project is open-source and available under the MIT License.
FAQs
A tool create a detailed CSV analyzing your project's dependencies
We found that depster demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.