{"id":21758739,"url":"https://github.com/jupegarnica/garn-exec","last_synced_at":"2026-05-09T16:17:16.330Z","repository":{"id":62422129,"uuid":"375317838","full_name":"jupegarnica/garn-exec","owner":"jupegarnica","description":"A deno utility to run subprocess easily.","archived":false,"fork":false,"pushed_at":"2022-02-20T18:01:42.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-14T14:05:39.800Z","etag":null,"topics":["deno"],"latest_commit_sha":null,"homepage":"https://deno.land/x/garn_exec","language":"JavaScript","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/jupegarnica.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}},"created_at":"2021-06-09T10:37:50.000Z","updated_at":"2022-02-26T13:49:42.000Z","dependencies_parsed_at":"2022-11-01T17:31:25.375Z","dependency_job_id":null,"html_url":"https://github.com/jupegarnica/garn-exec","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/jupegarnica/garn-exec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jupegarnica%2Fgarn-exec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jupegarnica%2Fgarn-exec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jupegarnica%2Fgarn-exec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jupegarnica%2Fgarn-exec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jupegarnica","download_url":"https://codeload.github.com/jupegarnica/garn-exec/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jupegarnica%2Fgarn-exec/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279019120,"owners_count":26086679,"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-10-14T02:00:06.444Z","response_time":60,"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":["deno"],"created_at":"2024-11-26T11:23:36.563Z","updated_at":"2025-10-14T14:07:14.680Z","avatar_url":"https://github.com/jupegarnica.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Garn Exec\n\nA deno utility to run subprocess easily.\n\n## $ usage\n\nMust be run --allow-run permission.\n\n```js\nimport { $ } from \"https://deno.land/x/garn_exec/exec.js\";\n\nawait $`cp *.js ..`;\n```\n\n```js\nimport { $ } from \"https://deno.land/x/garn_exec/exec.js\";\n\nconst { stdout, code } = await $`echo hola mundo`;\n\nconsole.log(stdout); // hola mundo\\n\nconsole.log(code); // 0\n```\n\n```js\nimport { $ } from \"https://deno.land/x/garn_exec/exec.js\";\n\ntry {\n  await $`sh test/fail.sh`;\n} catch (error) {\n  console.log(error.code); // 4\n}\n```\n\n## cd usage\n\n```js\nimport { $, cd } from \"https://deno.land/x/garn_exec/exec.js\";\ncd(\"test\");\nawait $`ls`;\n```\n\n## sh usage\n\n```js\nimport { sh } from \"https://deno.land/x/garn_exec/exec.js\";\nawait sh`cd test \u0026\u0026 ls | grep fail`;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjupegarnica%2Fgarn-exec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjupegarnica%2Fgarn-exec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjupegarnica%2Fgarn-exec/lists"}