{"id":15492129,"url":"https://github.com/imjuni/deps-diff","last_synced_at":"2025-08-18T19:32:47.503Z","repository":{"id":60945358,"uuid":"543470969","full_name":"imjuni/deps-diff","owner":"imjuni","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-27T16:27:48.000Z","size":643,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-19T10:27:07.154Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/imjuni.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}},"created_at":"2022-09-30T07:04:13.000Z","updated_at":"2023-03-17T13:18:17.000Z","dependencies_parsed_at":"2023-02-15T11:01:41.262Z","dependency_job_id":null,"html_url":"https://github.com/imjuni/deps-diff","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjuni%2Fdeps-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjuni%2Fdeps-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjuni%2Fdeps-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjuni%2Fdeps-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imjuni","download_url":"https://codeload.github.com/imjuni/deps-diff/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230269390,"owners_count":18199976,"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-10-02T07:58:57.060Z","updated_at":"2024-12-18T12:24:07.855Z","avatar_url":"https://github.com/imjuni.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deps-diff\n\nTiny utility for extract dependency difference two commit hash.\n\n[![Download Status](https://img.shields.io/npm/dw/deps-diff.svg)](https://npmcharts.com/compare/deps-diff?minimal=true) [![Github Star](https://img.shields.io/github/stars/imjuni/deps-diff.svg?style=popout)](https://github.com/imjuni/deps-diff) [![Github Issues](https://img.shields.io/github/issues-raw/imjuni/deps-diff.svg)](https://github.com/imjuni/deps-diff/issues) [![NPM version](https://img.shields.io/npm/v/deps-diff.svg)](https://www.npmjs.com/package/deps-diff) [![License](https://img.shields.io/npm/l/deps-diff.svg)](https://github.com/imjuni/deps-diff/blob/master/LICENSE)\n\n## Usage\n\n```bash\n# markdown\ndeps-diff md -p [your project directory]\n\n# or use pipe\ndeps-diff json -p [your project directory] | deps-diff-pipe-md\n```\n\noutput like below,\n\n```md\n- deps\n  - dev\n    - add rollup: 3.1.0\n    - change deps-diff: 0.6.0 \u003e 0.7.0\n```\n\nYes, you can add this content to git commit log.\n\n## CLI Option\n\n### Command\n\n| command | desc.                                            |\n| ------- | ------------------------------------------------ |\n| json    | dependencies difference generate json format     |\n| md      | dependencies difference generate markdown format |\n\n### Option\n\n| command           | alias | default                    | array | desc.                                                                                                                                                       |\n| ----------------- | ----- | -------------------------- | ----- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| project           | p     | process.cwd()              |       | project directory from which to extract version changes, if you not pass this option that will be use cwd(current working directory)                        |\n| config            | c     |                            |       | configuration file path, if you not pass this option that will be use find '.depsrc' first                                                                  |\n| dependencies      | d     | prod                       | o     | array of dependency type: dev, prod, peer                                                                                                                   |\n| ignore            | i     |                            | o     | ignore specfic dependency with action. You can pass dev-add, dev-remove, dev-change, prod-add, prod-remove, prod-change, peer-add, peer-remove, peer-change |\n| prev-hash         |       | latest commit hash         |       | previous git commit hash for comparison                                                                                                                     |\n| next-hash         |       | process.cwd()/package.json |       | previous git commit hash for comparison                                                                                                                     |\n| title-list-type   |       | #                          |       | list type of markdown document title                                                                                                                        |\n| deps-list-type    |       | m (replace -)              |       | list type of markdown document dependency                                                                                                                   |\n| content-list-type |       | m (replace -)              |       | list type of markdown document content                                                                                                                      |\n| git-basedir       |       | process.cwd()              |       | git base directory. This directory exists `.git`                                                                                                            |\n| git-binary        |       | git                        |       | git binary filename                                                                                                                                         |\n\n## Monorepo\n\nIf your project structure like below,\n\n```text\n├─ .git/\n├─ packages/\n│  ├─ my-project/\n│  │  ├─ package.json # deps-diff install here\n│  │  ├─ Button.tsx\n│  │  ├─ Input.tsx\n│  ├─ pages/\n│  │  ├─ Hero.tsx\n│  │  ├─ User.tsx\n```\n\nYou can add npm scripts that,\n\n```bash\n# my-project \u003e package.json \u003e scripts\n\ndeps-diff md -d prod -d dev --project . --git-basedir ../..\n```\n\n## Custom format markdown\n\nYou have to inheritance [AbstractParser](https://github.com/imjuni/deps-diff/blob/main/lib/modules/AbstractParser.ts) and implement it. [MarkdownParser](https://github.com/imjuni/deps-diff/blob/main/lib/modules/MarkdownParser.ts) is markdown parser example.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimjuni%2Fdeps-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimjuni%2Fdeps-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimjuni%2Fdeps-diff/lists"}