{"id":21561774,"url":"https://github.com/synonymdev/lightning-channel-id-js","last_synced_at":"2025-04-10T12:06:23.424Z","repository":{"id":39897796,"uuid":"494337429","full_name":"synonymdev/lightning-channel-id-js","owner":"synonymdev","description":"Convert between various channel id formats in Lightning network","archived":false,"fork":false,"pushed_at":"2022-05-23T01:25:49.000Z","size":16,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T10:56:26.612Z","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/synonymdev.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-05-20T05:50:14.000Z","updated_at":"2023-07-19T14:18:21.000Z","dependencies_parsed_at":"2022-09-07T13:51:48.394Z","dependency_job_id":null,"html_url":"https://github.com/synonymdev/lightning-channel-id-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/synonymdev%2Flightning-channel-id-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synonymdev%2Flightning-channel-id-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synonymdev%2Flightning-channel-id-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synonymdev%2Flightning-channel-id-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/synonymdev","download_url":"https://codeload.github.com/synonymdev/lightning-channel-id-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248216954,"owners_count":21066632,"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-24T09:27:56.379Z","updated_at":"2025-04-10T12:06:23.406Z","avatar_url":"https://github.com/synonymdev.png","language":"JavaScript","readme":"# lightning-channel-id-js\nConvert between various channel id formats in Lightning network.\n\n### Usage\n\n```js\n\nnpm install @synonymdev/lightning-channel-id\n\nconst parseChannelId = require(\"lightning-channel-js\")\n\nparseChannelId(\"807896954914930688\") // long channel id format\nparseChannelId(\"734778:1235:0\") // : seperated\nparseChannelId(\"734778x1235x0\") // x seperated \nparseChannelId(\"734778$1235$0\",\"$) // custom marker\n\n// All of the above should output same result\n{\n  block: '734778',\n  tx: '1235',\n  output: '0',\n  lnd_notation: '807896954914930688',\n  cln_format: '734778:1235:0'\n}\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynonymdev%2Flightning-channel-id-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsynonymdev%2Flightning-channel-id-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynonymdev%2Flightning-channel-id-js/lists"}