{"id":20957523,"url":"https://github.com/junobuild/didc","last_synced_at":"2026-01-03T07:32:56.918Z","repository":{"id":256274518,"uuid":"854690660","full_name":"junobuild/didc","owner":"junobuild","description":"A CLI tool for generating JavaScript or TypeScript content from a DID file","archived":false,"fork":false,"pushed_at":"2024-09-09T19:54:26.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T18:21:17.261Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/junobuild.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}},"created_at":"2024-09-09T16:01:08.000Z","updated_at":"2024-09-09T16:02:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"4cbfbc46-6adc-4fe1-9ca0-1e42a7aa947c","html_url":"https://github.com/junobuild/didc","commit_stats":null,"previous_names":["junobuild/didc"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junobuild%2Fdidc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junobuild%2Fdidc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junobuild%2Fdidc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junobuild%2Fdidc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/junobuild","download_url":"https://codeload.github.com/junobuild/didc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254084635,"owners_count":22011914,"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-11-19T01:34:14.762Z","updated_at":"2026-01-03T07:32:56.912Z","avatar_url":"https://github.com/junobuild.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JunoBuild-Didc\n\n`junobuild-didc` is a CLI tool for generating JavaScript, TypeScript, or DID output from a Candid `.did` file using the [didc](https://github.com/dfinity/candid) tool.\n\nThis utility is designed to be integrated in Juno's CLI.\n\n## Installation\n\nYou can install `junobuild-didc` globally using Cargo by running:\n\n```bash\ncargo install junobuild-didc\n```\n\n## Usage\n\nYou can use the `junobuild-didc` command to generate JavaScript or TypeScript bindings from a DID file.\n\n```bash\njunobuild-didc --input \u003cinput_file.did\u003e --target \u003cjs|ts\u003e [--output \u003coutput_file\u003e]\n```\n\n### Example\n\n```bash\njunobuild-didc --input ./path/to/interface.did --target ts --output ./generated/output.ts\n```\n\n- `--input` or `-i`: Path to the `.did` file.\n- `--target` or `-t`: Choose either `js` for JavaScript or `ts` for TypeScript output.\n- `--output` or `-o`: (Optional) Specify the output file. If omitted, the generated content will be printed to the console.\n\n## Development\n\n### Building from Source\n\nIf you want to build the tool from the source, you can clone the repository and build it yourself.\n\n```bash\ngit clone https://github.com/junobuild/didc\ncd didc\ncargo build --release\n```\n\nOnce built, the binary will be located in `target/release`. You can run it from the root directory:\n\n```bash\n./target/release/junobuild-didc --help\n```\n\nThis will display the available commands and usage instructions.\n\n### Running Tests\n\nYou can run the tests with:\n\n```bash\ncargo test\n```\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunobuild%2Fdidc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunobuild%2Fdidc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunobuild%2Fdidc/lists"}