Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/banyan/github-csv-diff
Extend GitHub's diff view to make csv diffs easier to read
https://github.com/banyan/github-csv-diff
Last synced: 19 days ago
JSON representation
Extend GitHub's diff view to make csv diffs easier to read
- Host: GitHub
- URL: https://github.com/banyan/github-csv-diff
- Owner: banyan
- License: mit
- Created: 2021-04-18T05:56:13.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-07T06:47:23.000Z (about 2 years ago)
- Last Synced: 2024-12-21T00:27:51.574Z (about 2 months ago)
- Language: TypeScript
- Size: 1.83 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github-csv-diff
> Extend GitHub's diff view to make csv diffs easier to read
GitHub provides a page that only shows diffs with a .diff at the end of the URL of the pull request.
This Chrome Extension makes it easier to view csv diffs by using [daff](https://paulfitz.github.io/daff/) on that page.### Before
### After
## Install
### Demo
You can see [demo diff view](https://github.com/banyan/github-csv-diff/pull/1.diff) after installed extension.
(Add `.diff` to the end of the pull request, e.g. `https://github.com/banyan/github-csv-diff/pull/1` for the URL `https://github.com/banyan/github-csv-diff/pull/1.diff`)### How it works
* Apply only when the diff is comparing csv to csv. otherwise, the original diff is displayed as is.
* If the number of differences is large, it takes a little time to display. (e.g. 20,000 lines in about 20 or 30 seconds on my environment), but otherwise, it's better to view the diff locally.### Appendix
* A bookmarklet to open the diff page from GitHub Pull Request page.
```
javascript:void(window.open(location.href.match(/https:\/\/github.com\/.+\/pull\/\d+/)[0]+'.diff','_blank'))
```