{"id":31040502,"url":"https://github.com/zth/rescript-generated-js-diff","last_synced_at":"2026-02-15T10:18:07.511Z","repository":{"id":309579808,"uuid":"1036256154","full_name":"zth/rescript-generated-js-diff","owner":"zth","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-12T18:06:00.000Z","size":132,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-27T18:39:07.668Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"ReScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-08-11T19:50:14.000Z","updated_at":"2025-08-12T18:04:27.000Z","dependencies_parsed_at":"2025-08-12T18:22:24.484Z","dependency_job_id":"3dc4e795-e453-4715-a016-d6f25ab6b66e","html_url":"https://github.com/zth/rescript-generated-js-diff","commit_stats":null,"previous_names":["zth/rescript-generated-js-diff"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zth/rescript-generated-js-diff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zth%2Frescript-generated-js-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zth%2Frescript-generated-js-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zth%2Frescript-generated-js-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zth%2Frescript-generated-js-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zth","download_url":"https://codeload.github.com/zth/rescript-generated-js-diff/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zth%2Frescript-generated-js-diff/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275082359,"owners_count":25402339,"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","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-09-14T08:52:33.607Z","updated_at":"2026-02-15T10:18:02.487Z","avatar_url":"https://github.com/zth.png","language":"ReScript","readme":"## rescript-generated-js-diff\n\nSmall CLI to zip the generated JS files of a ReScript project. Useful for sharing or inspecting diffs of compiler output.\n\n### How it works\n\n- **Config discovery**: reads `rescript.json` or `bsconfig.json` to find `sources`.\n- **File selection**: collects files with the configured `suffix` (default: `.bs.js`; respects `suffix` if set, e.g. `.res.mjs`).\n- **Output**: creates a zip archive in the target project directory.\n\n### Install\n\n```sh\nnpm install\n```\n\n### Run\n\n```sh\nnode src/RescriptGeneratedJsDiff.res.mjs \u003cbase-dir\u003e [out-file]\n```\n\nExamples:\n\n```sh\n# Zip generated JS in the current project (writes ./diff.zip)\nnode src/RescriptGeneratedJsDiff.res.mjs .\n\n# Custom output path\nnode src/RescriptGeneratedJsDiff.res.mjs . ./out/generated.zip\n```\n\n### Notes\n\n- Exits with code 1 if no files with the target suffix are found.\n- To rebuild `.res.mjs` from source, use: `npm run res:build` (and `npm run res:dev` to watch).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzth%2Frescript-generated-js-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzth%2Frescript-generated-js-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzth%2Frescript-generated-js-diff/lists"}