{"id":13447128,"url":"https://github.com/omgaz/diffler","last_synced_at":"2026-04-29T04:05:38.034Z","repository":{"id":3245652,"uuid":"4282957","full_name":"omgaz/diffler","owner":"omgaz","description":"A recursive JSON comparison script for humans","archived":false,"fork":false,"pushed_at":"2025-11-15T10:34:17.000Z","size":461,"stargazers_count":18,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-15T12:14:43.005Z","etag":null,"topics":["compare","hacktoberfest","javascript","jsdiff","json","json-objects"],"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/omgaz.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2012-05-10T10:10:15.000Z","updated_at":"2025-03-06T05:36:05.000Z","dependencies_parsed_at":"2024-01-18T15:58:09.776Z","dependency_job_id":"79649e1b-3d56-4a69-bd35-9f5531ffee3f","html_url":"https://github.com/omgaz/diffler","commit_stats":null,"previous_names":["omgaz/js-diff"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/omgaz/diffler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omgaz%2Fdiffler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omgaz%2Fdiffler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omgaz%2Fdiffler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omgaz%2Fdiffler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omgaz","download_url":"https://codeload.github.com/omgaz/diffler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omgaz%2Fdiffler/sbom","scorecard":{"id":706177,"data":{"date":"2025-08-11","repo":{"name":"github.com/omgaz/diffler","commit":"d1a01640e2d47786123c932be0fa7b2e35782d32"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.2,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:30","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/node.js.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/omgaz/diffler/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/omgaz/diffler/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/omgaz/diffler/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/omgaz/diffler/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/omgaz/diffler/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/omgaz/diffler/node.js.yml/master?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 3 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T06:39:15.382Z","repository_id":3245652,"created_at":"2025-08-22T06:39:15.382Z","updated_at":"2025-08-22T06:39:15.382Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32409973,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T03:46:11.172Z","status":"ssl_error","status_checked_at":"2026-04-29T03:37:55.317Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["compare","hacktoberfest","javascript","jsdiff","json","json-objects"],"created_at":"2024-07-31T05:01:08.966Z","updated_at":"2026-04-29T04:05:38.029Z","avatar_url":"https://github.com/omgaz.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"stuff/AppIcon-readme.png\" height=\"200\" /\u003e\n  \u003ch1\u003ediffler\u003c/h1\u003e\n  \u003cp\u003e\n    \u003cb\u003eA recursive JSON comparison script for humans\u003c/b\u003e\n  \u003c/p\u003e\n  \u003cbr\u003e\n  \u003cbr\u003e\n\u003c/div\u003e\n\n## Motivation\n\nTo compare JSON objects containing asset metadata for a digital library. Upon change of any metadata, we'd store these changes as an audit trail and email asset stakeholders for review and approval of the changes.\n\n## Usage\n\n[![npm version](https://badge.fury.io/js/diffler.png)](https://www.npmjs.com/package/diffler)\n\n```bash\nnpm install diffler\n```\n\n### Params\n\n`original` and `updated` are two JSON objects for comparison.\n\n### Return\n\nIf same: returns `{}` _(empty object)_\n\nIf different: A JSON object with preserved path structure. The resulting values will be an object with `from` and `to` fields.\n\n### Example\n\n#### ESM\n\n```ts\nimport diffler from 'diffler';\n\nconst before = { name: 'omgaz', location: 'London' };\nconst after = { name: 'omgaz', location: 'Melbourne' };\n\nconst difference = diffler(before, after);\nconsole.log(difference); // { location: { from: 'London', to: 'Melbourne' } }\n```\n\n#### CommonJS\n\n```js\nconst diffler = require('diffler');\n\nconst before = { name: 'omgaz', location: 'London' };\nconst after = { name: 'omgaz', location: 'Melbourne' };\n\nconst difference = diffler(before, after);\nconsole.log(difference); // { location: { from: 'London', to: 'Melbourne' } }\n```\n\n## Development\n\nRequires Node 18+.\n\n```bash\nnpm install\nnpm test\nnpm run build\n```\n\n### Scripts\n\n| Command               | Description                   |\n| --------------------- | ----------------------------- |\n| `npm test`            | Run tests with Vitest         |\n| `npm run test:terse`  | Run tests with minimal output |\n| `npm run test:watch`  | Run tests in watch mode       |\n| `npm run lint`        | Check with Biome              |\n| `npm run lint:fix`    | Auto-fix with Biome           |\n| `npm run check-types` | TypeScript type checking      |\n| `npm run build`       | Build with Vite               |\n| `npm run bench`       | Run performance benchmark     |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomgaz%2Fdiffler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomgaz%2Fdiffler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomgaz%2Fdiffler/lists"}