Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/melwyn95/json-diff-snippets
A template to implement your own json-diff
https://github.com/melwyn95/json-diff-snippets
Last synced: about 2 months ago
JSON representation
A template to implement your own json-diff
- Host: GitHub
- URL: https://github.com/melwyn95/json-diff-snippets
- Owner: melwyn95
- License: mit
- Created: 2020-04-06T01:27:16.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-06T14:14:36.000Z (almost 5 years ago)
- Last Synced: 2023-03-08T11:08:47.668Z (almost 2 years ago)
- Language: Go
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# json-diff-snippets
A template to implement your own json-diffjson-diff works on pub-sub pattern
There are TODOs in producer.go and consumer.go
- Implement the producer function which will generate requests and write it on a channel.
- The consumers will listen on the channel and pick up request make api calls concurrently and will write the JSON response in a file.
- After all the requests are done, the diff.js script will we invoked, which will compare the JSON responses and write the difference (added, modified & deleted) in a file.To build and install json-diff
```sh
go install ./...
```
go install copies the built binary into your GOPATH, so you can run it.
```sh
json-diff
```
The diff script can be run standalone using node (>= 10.13.0 )
```sh
node diff.js
```