{"id":20801916,"url":"https://github.com/philips-software/node-modules-dependencies-extractor","last_synced_at":"2026-04-22T00:32:06.433Z","repository":{"id":46865512,"uuid":"238674032","full_name":"philips-software/node-modules-dependencies-extractor","owner":"philips-software","description":"Extracts dependencies from the node_modules folder of a Javascript project, to a reference format. This reference format is a JSON file containing arrays of objects with keys _name_ and _version_. The node_modules folder is assumed to have been generated by one of the following commands: `npm install` or `yarn install`.","archived":false,"fork":false,"pushed_at":"2023-07-18T22:29:18.000Z","size":422,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-27T09:56:28.222Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/philips-software.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-06T11:32:24.000Z","updated_at":"2022-10-23T20:24:53.000Z","dependencies_parsed_at":"2025-01-18T12:39:30.132Z","dependency_job_id":null,"html_url":"https://github.com/philips-software/node-modules-dependencies-extractor","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/philips-software/node-modules-dependencies-extractor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2Fnode-modules-dependencies-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2Fnode-modules-dependencies-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2Fnode-modules-dependencies-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2Fnode-modules-dependencies-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philips-software","download_url":"https://codeload.github.com/philips-software/node-modules-dependencies-extractor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2Fnode-modules-dependencies-extractor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32115808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"ssl_error","status_checked_at":"2026-04-22T00:30:22.894Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T18:26:10.015Z","updated_at":"2026-04-22T00:32:06.410Z","avatar_url":"https://github.com/philips-software.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-modules-dependencies-extractor\n## Description\nExtracts dependencies from the node_modules folder of a Javascript project, to a reference format. This reference format is a JSON file containing arrays of objects with keys _name_ and _version_.\nThe node_modules folder is assumed to have been generated by one of the following commands: `npm install` or `yarn install`.\n\nOutputs the following files: \n  - __dependencies_from_node_modules.json__ (name can be overriden) contains the dependencies as identified in the __node_modules__ folder, in a reference format. This reference format is a JSON file containing arrays of objects with keys _name_ and _version_. It contains unique objects by the combination _name_ and _version_\n\n\n# Status\n0.1.1, see [CHANGELOG.md](./CHANGELOG.md)\n\n# Limitation\n- tested with the node_modules folder of various Javascript projects, as generated by the install command of the following package managers: \n  - yarn\n  - npm\n\n# Prerequisites\nIn order to run this project, you should have installed:\n- Node installed (we used node v12.2.0)\n- yarn  (we used version v1.19.0)\nThe input to this script should be a folder named node_modules, as generated by the install commands of either npm or yarn .\n\n## Installation\nInstall globally:\n```shell\nnpm install -g node-modules-dependencies-extractor\n```\nOr you could use it without installing by running:\n```shell\nnpx node-modules-dependencies-extractor [options]\n```\n\n# Usage\n```\nextract-nm-dependencies [options]\n```\n\n### Supported options:\n\n| Flag                 | Alias | Functionality\n| ---------------------|:-----:| -------------------------------------\n| --input [path]       |  -i   | (mandatory) specifies path to the node_modules folder.\n| --output [filename]  |  -o   | (optional) Filename to which the list of dependencies (name+version) is written (json format). If the file already exists, it will be overwritten. Default value: dependencies_from_node_modules.json\n| --verbose            |       | Verbose output of commands and errors\n| --help               | -h    | Displays usage information\n| --version            | -v    | Displays version number\n\n\n### Sample usage\n```\nyarn extract-nm-dependencies -i ./test-data/node_modules_samples/siblings_no_nesting\n```\n## Technology stack\n- Javascript\n- This software is intended to be used standalone, as a command-line tool\n\n## How to build\nGet the sources locally; in a command line, go to the root folder of this project and execute:\n```\nyarn install\n```\n## How to test\n```\nyarn test\n```\nor \n```\nyarn coverage\n```\n\n## How to do static analysis of code\nAutomatically enabled: standard\n```\nyarn lint\n```\n\n## Owners\nSee [CODEOWNERS](./CODEOWNERS)\n\n## Maintainers\nSee [MAINTAINERS.md](./MAINTAINERS.md)\n\n## Contributing\nSee [CONTRIBUTING.md](./CONTRIBUTING.md)\n\n## License\nSee [LICENSE.md](./LICENSE.md)\n\n## Author\nSanda Contiu\n\n## Keywords\n  - dependencies\n  - sbom\n  - software bill of material\n  - node_modules\n  - npm\n  - yarn\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilips-software%2Fnode-modules-dependencies-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilips-software%2Fnode-modules-dependencies-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilips-software%2Fnode-modules-dependencies-extractor/lists"}