{"id":13452225,"url":"https://github.com/scottgonzalez/pretty-diff","last_synced_at":"2025-04-05T15:03:32.502Z","repository":{"id":57330110,"uuid":"2557743","full_name":"scottgonzalez/pretty-diff","owner":"scottgonzalez","description":"colorized HTML diffs","archived":false,"fork":false,"pushed_at":"2023-11-16T14:30:29.000Z","size":39,"stargazers_count":220,"open_issues_count":10,"forks_count":26,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T14:05:44.361Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/scottgonzalez.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-10-11T19:44:45.000Z","updated_at":"2025-02-24T07:30:56.000Z","dependencies_parsed_at":"2024-06-19T00:44:52.968Z","dependency_job_id":"5ee6ec7b-1bca-497b-8074-ddd0af70c8a0","html_url":"https://github.com/scottgonzalez/pretty-diff","commit_stats":{"total_commits":59,"total_committers":6,"mean_commits":9.833333333333334,"dds":"0.13559322033898302","last_synced_commit":"f37ef20146c291dec71c4357afe4dd6bd6cd66d4"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgonzalez%2Fpretty-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgonzalez%2Fpretty-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgonzalez%2Fpretty-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgonzalez%2Fpretty-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scottgonzalez","download_url":"https://codeload.github.com/scottgonzalez/pretty-diff/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247353729,"owners_count":20925329,"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-07-31T07:01:17.470Z","updated_at":"2025-04-05T15:03:32.485Z","avatar_url":"https://github.com/scottgonzalez.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Pretty Diff\n\nPretty diff generates colorized HTML diffs similar to the diff/commit views on GitHub.\nSimply use `pretty-diff` the same way you use `git diff` and you'll get pretty diffs.\nIf you want to share the diff, you can use `gist-diff` and you'll get a new gist.\n\n![image](https://cloud.githubusercontent.com/assets/39191/10147714/8c358910-65e4-11e5-8e59-e1526ef674cd.png)\n\n\n## Installation\n\nSimply install globally via npm:\n\n```sh\nnpm install -g pretty-diff\n```\n\n## Usage\n\n### pretty-diff\n\n`pretty-diff` has no settings of its own.\nSimply provide whatever settings you want to pass to `git diff`.\n\nFor example, to see what changed in the last commit:\n\n```sh\npretty-diff HEAD^\n```\n\n### gist-diff\n\n`gist-diff` has one setting: `--public`.\nBy default `gist-diff` will generate a private gist.\nIf `--public` is provided, the gist will be public.\nThis setting can be specified anywhere (before or after the `git diff` settings).\n\n`gist-diff` will attempt to create the gist using your GitHub account.\nIn order to create the gist with your account, you will be prompted for your password.\nIf you enter no password, then an anonymous gist will be generated.\nHowever, if you enter an incorrect password, then no gist will be generated.\n\n#### Authentication\n\nIf you set your GitHub username in your git config, you will only be prompted for your password.\n\n```sh\ngit config --global github.user \"Your Username\"\n```\n\nTo avoid being prompted for your password, you can\n[create a personal access token](https://github.com/settings/applications) and\nstore it in your git config. You don't need to set `github.user` if you're using\na token.\n\n```sh\ngit config --global gist-diff.token \"Your token\"\n```\n\n## License\n\nCopyright Scott González. Released under the terms of the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottgonzalez%2Fpretty-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscottgonzalez%2Fpretty-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottgonzalez%2Fpretty-diff/lists"}