{"id":20989894,"url":"https://github.com/iddm/urlshortener-cli","last_synced_at":"2025-05-14T18:32:18.816Z","repository":{"id":52422365,"uuid":"73696906","full_name":"iddm/urlshortener-cli","owner":"iddm","description":"A urlshortener command line interface","archived":false,"fork":false,"pushed_at":"2024-05-30T13:25:42.000Z","size":82,"stargazers_count":6,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-10T09:17:17.495Z","etag":null,"topics":["rust","shorten-urls","url","url-shortener","urlshortener-cli"],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/iddm.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}},"created_at":"2016-11-14T11:11:19.000Z","updated_at":"2024-05-30T13:25:46.000Z","dependencies_parsed_at":"2023-12-11T11:19:35.622Z","dependency_job_id":"275433c6-4209-407d-aea7-7a179d82ff8a","html_url":"https://github.com/iddm/urlshortener-cli","commit_stats":null,"previous_names":["iddm/urlshortener-cli","vityafx/urlshortener-cli"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iddm%2Furlshortener-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iddm%2Furlshortener-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iddm%2Furlshortener-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iddm%2Furlshortener-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iddm","download_url":"https://codeload.github.com/iddm/urlshortener-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225305782,"owners_count":17453447,"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":["rust","shorten-urls","url","url-shortener","urlshortener-cli"],"created_at":"2024-11-19T06:26:36.297Z","updated_at":"2024-11-19T06:26:36.825Z","avatar_url":"https://github.com/iddm.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# urlshortener-cli\n[![](https://meritbadge.herokuapp.com/urlshortener-cli)](https://crates.io/crates/urlshortener-cli)\n[![](https://travis-ci.org/vityafx/urlshortener-cli.svg?branch=master)](https://travis-ci.org/vityafx/urlshortener-cli)\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)\n\n\nA very simple urlshortener program written in Rust language. It uses [urlshortener](https://github.com/iddm/urlshortener-rs) rust library as data provider.\n\n\n## Installing with `Cargo`\n\n```\ncargo install urlshortener-cli\n```\n\n## Usage\nThe interface is minimal as possible:\n\n```\n$ urlshortener-cli http://google.ru http://yandex.ru\nhttp://google.ru -\u003e https://is.gd/h5kR5r\nhttp://yandex.ru -\u003e https://is.gd/CifrPx\n```\n\nIf your url has escaped characters just wrap it with quotes:\n\n```\n$ urlshortener-cli \"https://www.google.ru/url?sa=t\u0026rct=j\u0026q=\u0026esrc=s\u0026source=web\u0026cd=2\u0026cad=rja\u0026uact=8\u0026ved=0ahUKEwiclOPp3OTRAhVyb5oKHUzyCl8QFggpMAE\u0026url=http%3A%2F%2Ftest.tankionline.com%2F\u0026usg=AFQjCNFIEFFpu2m_QofHelAXRK0JP4dLOQ\u0026sig2=Fc6eFhPDqNgt5kZMzRWPIA\"\n\nhttps://www.google.ru/url?sa=t\u0026rct=j\u0026q=\u0026esrc=s\u0026source=web\u0026cd=2\u0026cad=rja\u0026uact=8\u0026ved=0ahUKEwiclOPp3OTRAhVyb5oKHUzyCl8QFggpMAE\u0026url=http%3A%2F%2Ftest.tankionline.com%2F\u0026usg=AFQjCNFIEFFpu2m_QofHelAXRK0JP4dLOQ\u0026sig2=Fc6eFhPDqNgt5kZMzRWPIA -\u003e https://is.gd/jIsDF1\n```\n\nThe crate supports setting the clipboard content with the optional\n`--set-to-clipboard` argument. The shortened links are then copied into\nthe clipboard for easier use.\n\n```\n$ urlshortener-cli --set-to-clipboard \"https://google.com\"\n```\n\nThe crate also supports gets the links to shorten from the clipboard.\nFor this, use the `--get-from-clipboard` argument.\n\n```\n$ urlshortener-cli --get-from-clipboard\n```\n\nNote that getting the links from the clipboard may be messy on Linux if\nthe clipboard managers are used.\n\n## Integration with Desktop Environments\n\n### Hyprland\n\nCreate a key shortcut to use the shortener: in your quickly\n`~/.config/hypr/hyprland.conf`, put something like this:\n\n```\nbind = $mainMod, L, exec, urlshortener-cli --get-from-clipboard --set-to-clipboard\n```\nThen, just copy a link to your clipboard, and invoke the shortcut, if done like this, -\nthe `MOD key + L`, to shorten the link. The resulting short link will be in the\nclipboard.\n\n## License\n\nThis project is [licensed under the MIT license](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiddm%2Furlshortener-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiddm%2Furlshortener-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiddm%2Furlshortener-cli/lists"}