didg
v1.1.1
Published
Internet Computer canister declarations loader (CLI)
Downloads
21
Maintainers
Readme
didg
CLI tool to fetch canister's public candid metadata and generate JS/TS bindings.
Prerequisites
Installation
npm install -g didg
Usage
didg <canister_id> <output_dir>
Example
didg ryjl3-tyaaa-aaaaa-aaaba-cai declarations/ledger
Output structure:
declarations
└── ledger
├── index.js
├── ledger.did
├── ledger.did.d.ts
└── ledger.did.js