{"id":22367723,"url":"https://github.com/hugojosefson/deno-sudo","last_synced_at":"2026-05-15T08:32:26.253Z","repository":{"id":66830168,"uuid":"391723151","full_name":"hugojosefson/deno-sudo","owner":"hugojosefson","description":"Easy-to-use sudo for deno cli apps.","archived":false,"fork":false,"pushed_at":"2021-08-04T20:25:26.000Z","size":25,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-26T15:55:21.804Z","etag":null,"topics":["cli","deno","sudo"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/hugojosefson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2021-08-01T19:47:56.000Z","updated_at":"2023-08-15T09:52:08.000Z","dependencies_parsed_at":"2023-02-23T01:30:34.725Z","dependency_job_id":null,"html_url":"https://github.com/hugojosefson/deno-sudo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hugojosefson/deno-sudo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugojosefson%2Fdeno-sudo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugojosefson%2Fdeno-sudo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugojosefson%2Fdeno-sudo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugojosefson%2Fdeno-sudo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugojosefson","download_url":"https://codeload.github.com/hugojosefson/deno-sudo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugojosefson%2Fdeno-sudo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268660145,"owners_count":24286028,"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","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","deno","sudo"],"created_at":"2024-12-04T18:20:43.525Z","updated_at":"2025-10-19T09:20:50.039Z","avatar_url":"https://github.com/hugojosefson.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deno-sudo\n\n`🦕 #`\n\nSpawns a new `deno` process, using the system's `sudo` command to have that\nspawned process gain privileged permissions.\n\nThe `sudo` executable will be connected to the console, so it can ask the user\nfor their password.\n\nWhen the `sudo` process has achieved elevated privileges, the main original\n`deno` process uses the `sudo deno` process to run any commands requiring `root`\nprivileges. It does this by communicating with that process, asking it to run\nsystem commands on its behalf.\n\nThe benefit of keeping the privileged process around, and sending it commands to\nrun as `root`, is that it needs to ask the user only once for their password.\nEven if long time passes between commands, which would otherwise time out the\n`sudo` elevation and prompt the user to re-enter their password. This is useful\nfor e.g. scripting installation of operating systems and their components.\n\nAfter initial instantiation, the API supplied is a single `import()` function,\nwhich behaves much like the built-in dynamic `import()` statement. However,\ninstead of actually importing the module, it is imported in a separate\nprivileged `deno` process. The object returned to the caller is a `Proxy` which\ndelegates everything to the imported module in the privileged process.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugojosefson%2Fdeno-sudo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugojosefson%2Fdeno-sudo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugojosefson%2Fdeno-sudo/lists"}