{"id":14064738,"url":"https://github.com/Saghetti0/node-oss-credits","last_synced_at":"2025-07-29T18:33:57.388Z","repository":{"id":214164898,"uuid":"529480520","full_name":"Saghetti0/node-oss-credits","owner":"Saghetti0","description":"A utility to automatically generate a markdown file containing all of the NPM packages your program uses, along with their licenses.","archived":false,"fork":false,"pushed_at":"2022-08-27T04:30:28.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-13T07:07:27.573Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Saghetti0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-08-27T04:26:13.000Z","updated_at":"2024-05-28T01:36:39.000Z","dependencies_parsed_at":"2023-12-26T10:30:39.146Z","dependency_job_id":"3107231c-53c6-4980-9439-7b7ea8e6ff7a","html_url":"https://github.com/Saghetti0/node-oss-credits","commit_stats":null,"previous_names":["saghetti0/node-oss-credits"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saghetti0%2Fnode-oss-credits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saghetti0%2Fnode-oss-credits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saghetti0%2Fnode-oss-credits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saghetti0%2Fnode-oss-credits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Saghetti0","download_url":"https://codeload.github.com/Saghetti0/node-oss-credits/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228040838,"owners_count":17860211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-08-13T07:04:02.936Z","updated_at":"2024-12-04T03:31:27.581Z","avatar_url":"https://github.com/Saghetti0.png","language":"Python","readme":"# node-oss-credits\n\nA utility to automatically generate a markdown file containing all of the NPM packages your program uses, along with their licenses.\n\n## Usage\n\n1. Put `oss_credits.py` in the same folder that your `node_modules` is contained in\n2. `npm i`\n3. `python oss_credits.py`\n4. A file called `oss_credits.md` will be generated. Enjoy!\n\n## Why Python?\n\nI wrote this in Python because in general, I prefer using python for basic scripts like this one.\n\n## Caveats\n\n* The code looks for packages in a rather scuffed way: it looks for packages by finding all `package.json` files in `node_modules`, and then filtering by ones that have license files in the same directory. This could cause some weirdness.\n* There's no deduplication of license files, so the output file is huge because it contains tons of copies of the same license. May be a good idea to use some sort of hash system w/ licenses, and then have all packages that use the same license hash link to it in the markdown.\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSaghetti0%2Fnode-oss-credits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSaghetti0%2Fnode-oss-credits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSaghetti0%2Fnode-oss-credits/lists"}