{"id":13472173,"url":"https://github.com/xtyrrell/undollar","last_synced_at":"2025-03-16T07:32:11.701Z","repository":{"id":45211723,"uuid":"115262574","full_name":"xtyrrell/undollar","owner":"xtyrrell","description":"undollar eats the dollar sign in the command you just pasted into your terminal","archived":false,"fork":false,"pushed_at":"2018-09-14T19:07:56.000Z","size":6,"stargazers_count":155,"open_issues_count":2,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-21T13:29:14.472Z","etag":null,"topics":["command-line","convenience","copy-paste","copying","shameless","stackoverflow"],"latest_commit_sha":null,"homepage":"","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/xtyrrell.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":"2017-12-24T12:51:32.000Z","updated_at":"2024-04-21T13:24:28.000Z","dependencies_parsed_at":"2022-08-28T16:40:23.476Z","dependency_job_id":null,"html_url":"https://github.com/xtyrrell/undollar","commit_stats":null,"previous_names":["imfeelingducky/undollar"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtyrrell%2Fundollar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtyrrell%2Fundollar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtyrrell%2Fundollar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtyrrell%2Fundollar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xtyrrell","download_url":"https://codeload.github.com/xtyrrell/undollar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242627342,"owners_count":20160262,"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":["command-line","convenience","copy-paste","copying","shameless","stackoverflow"],"created_at":"2024-07-31T16:00:52.605Z","updated_at":"2025-03-16T07:32:10.752Z","avatar_url":"https://github.com/xtyrrell.png","language":"JavaScript","readme":"# undollar\nundollar strips the dollar sign from the beginning of the terminal command you just copied from StackOverflow when you were searching for what arguments to pass to `tar` (`xzf`? `xvfJ`? Or was it `xvf`? You never seem to remember).\n\n## Installation\nSimply install undollar as a global package using npm or yarn:\n```\n$ npm install -g undollar\n```\nwell, because you haven't installed it yet,\n```\nnpm install -g undollar\n```\n\n## Usage\nAfter you've installed undollar, you can forget it exists. Next time you paste in a command prefixed with a dollar sign, undollar will quietly eat the dollar sign and run the rest of the command.\n```\nneo@computey:~$ $ tar xvfJ something.tar.xz\nneo@computey:~$\nneo@computey:~$ echo \"It worked! Thanks undollar!\"\n\n```\nIt's as if that stray dollar sign was never there in the first place!\n\n## Wait what\nPeople often put a \"$\" in front of a command to indicate that it must be executed on the command line. This is because, on Unix-like operating systems, the command-prompt usually ends in a \"$\" for non-root users -- so the last thing before a command is a \"$\".\n\nOften when copy-pasting terminal commands from the internet you'll inadvertently end up also having copied the dollar sign at the beginning (especially if you triple-click to select). Trying to execute the command you just pasted will result in some variant of \"command not found\" or \"No such file or directory\".\n\nInstalling undollar solves this problem, by registering `$` as a valid command, which simply runs everything after that `$`.\n","funding_links":[],"categories":["JavaScript","Command-Line Productivity"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtyrrell%2Fundollar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxtyrrell%2Fundollar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtyrrell%2Fundollar/lists"}