{"id":21519124,"url":"https://github.com/dcspark/cip5-js","last_synced_at":"2025-04-09T22:08:49.092Z","repository":{"id":65522775,"uuid":"486131027","full_name":"dcSpark/cip5-js","owner":"dcSpark","description":"A JS / Typescript implementation of CIP5 (https://github.com/cardano-foundation/CIPs/tree/master/CIP-0005)","archived":false,"fork":false,"pushed_at":"2023-02-20T08:21:14.000Z","size":65,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T22:08:43.552Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcSpark.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}},"created_at":"2022-04-27T09:37:07.000Z","updated_at":"2024-09-25T13:00:16.000Z","dependencies_parsed_at":"2023-01-27T06:01:32.904Z","dependency_job_id":null,"html_url":"https://github.com/dcSpark/cip5-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcSpark%2Fcip5-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcSpark%2Fcip5-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcSpark%2Fcip5-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcSpark%2Fcip5-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcSpark","download_url":"https://codeload.github.com/dcSpark/cip5-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119294,"owners_count":21050755,"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-24T00:55:55.970Z","updated_at":"2025-04-09T22:08:49.075Z","avatar_url":"https://github.com/dcSpark.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CIP5-JS\n\nThis is a reference implementation of Cardano's [CIP5](https://github.com/cardano-foundation/CIPs/tree/master/CIP-0005) which defines standard prefixes (or so-called human-readable part in the [bech32](https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki)) encoding format) for various bech32-encoded binary data across the Cardano ecosystem.\n\n## Install\n\n```sh\nnpm i @dcspark/cip5-js --save\n```\n\n## Usage\n\n```js\nimport Cip5 from \"@dcspark/cip5-js\";\nimport { bech32 } from \"bech32\";\nconst bech32Info = bech32.decode(address);\n\nif (bech32Info.prefix === Cip5.hashes.addr_vkh) {\n  // whatever parsing logic you want\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcspark%2Fcip5-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcspark%2Fcip5-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcspark%2Fcip5-js/lists"}