{"id":17684552,"url":"https://github.com/sujjeee/dubco","last_synced_at":"2025-04-15T01:09:30.486Z","repository":{"id":212932176,"uuid":"732583013","full_name":"sujjeee/dubco","owner":"sujjeee","description":"A CLI for easily shortening URLs. ✂️","archived":false,"fork":false,"pushed_at":"2024-10-04T13:44:27.000Z","size":224,"stargazers_count":25,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T01:09:25.103Z","etag":null,"topics":["cli","dub","dubco","nodejs","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/dubco","language":"TypeScript","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/sujjeee.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}},"created_at":"2023-12-17T06:46:15.000Z","updated_at":"2025-02-10T15:38:44.000Z","dependencies_parsed_at":"2024-10-24T12:59:50.985Z","dependency_job_id":null,"html_url":"https://github.com/sujjeee/dubco","commit_stats":null,"previous_names":["sujjeee/dubco"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujjeee%2Fdubco","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujjeee%2Fdubco/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujjeee%2Fdubco/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujjeee%2Fdubco/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sujjeee","download_url":"https://codeload.github.com/sujjeee/dubco/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986312,"owners_count":21194025,"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":["cli","dub","dubco","nodejs","typescript"],"created_at":"2024-10-24T10:23:56.248Z","updated_at":"2025-04-15T01:09:30.471Z","avatar_url":"https://github.com/sujjeee.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dubco - URL Shortener CLI\n\nA command line tool for easily shortening URLs using the dub.co service. ✂️\n\n## Quick Demo\n\nhttps://github.com/user-attachments/assets/a48a345d-00b5-4faa-99e0-36156893032e\n\n\u003e **Warning**\n\u003e Demo video uses 'dub', but you need to use 'dubco'.\n\u003e\n\u003e If the cli does not work as expected, you can try to run `dubco login` again to refresh your credentials.\n\n## Installation\n\nInstall dubco globally to access the commands from your terminal:\n\n```bash\nnpm install -g dubco\n```\n\nor if you are using pnpm\n\n```bash\npnpm install -g dubco\n```\n\n## Usage\n\n### Login\n\nYou need to run the `login` command with your `Workspace API Key`:\n\n```bash\ndubco login [token]\n```\n\n#### Example\n\n```bash\ndubco login dub_Nlaw9TUaeSkGfRii3lmgZLid\n```\n\n### Config\n\nTo view your current dubco configuration, you can run the `config` command:\n\n```bash\ndubco config\n```\n\n### link\n\nTo create a new short link, you can run the `shorten` command:\n\n```bash\ndubco link [url] [shortkey]\n```\n\nThis command will take a `url` and an optional `shortkey` as arguments and shorten the url using the dub.co API.\n\n#### Example\n\n```bash\ndubco link https://example.com/jhondoe/data jhon\n```\n\nIf you provide a `url` but not a `shortkey`, it will generate a random shortkey using `nanoid`.\n\nIf you do not provide any arguments, it will prompt you to enter a `destination url` and an optional `shortkey`.\n\n## Credits\n\nDubco CLI uses the [dub.co](https://dub.co) API to make short links.\nVisit https://dub.co to manage your links in more advanced ways.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsujjeee%2Fdubco","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsujjeee%2Fdubco","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsujjeee%2Fdubco/lists"}