{"id":13555019,"url":"https://github.com/denorg/dpx","last_synced_at":"2025-04-10T23:14:22.272Z","repository":{"id":57107532,"uuid":"266308091","full_name":"denorg/dpx","owner":"denorg","description":"📦 CLI to run a Deno package without installing it (like npx for Deno)","archived":false,"fork":false,"pushed_at":"2020-06-26T20:51:19.000Z","size":34,"stargazers_count":59,"open_issues_count":3,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-24T00:38:25.864Z","etag":null,"topics":["cli","deno","denoland","denorg","npx","typescript"],"latest_commit_sha":null,"homepage":"https://denorg.github.io/dpx/","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/denorg.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":"2020-05-23T09:54:34.000Z","updated_at":"2025-02-12T12:55:07.000Z","dependencies_parsed_at":"2022-08-20T17:11:20.612Z","dependency_job_id":null,"html_url":"https://github.com/denorg/dpx","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":"denorg/starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denorg%2Fdpx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denorg%2Fdpx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denorg%2Fdpx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denorg%2Fdpx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denorg","download_url":"https://codeload.github.com/denorg/dpx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248085326,"owners_count":21045139,"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","deno","denoland","denorg","npx","typescript"],"created_at":"2024-08-01T12:03:00.015Z","updated_at":"2025-04-10T23:14:22.252Z","avatar_url":"https://github.com/denorg.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# 📦 DPX\n\n`dpx` is like `npx` for Deno, easily run a Deno CLI package.\n\n[![Deno CI](https://github.com/denorg/dpx/workflows/Deno%20CI/badge.svg)](https://github.com/denorg/dpx/actions)\n[![GitHub](https://img.shields.io/github/license/denorg/dpx)](https://github.com/denorg/dpx/blob/master/LICENSE)\n[![Contributors](https://img.shields.io/github/contributors/denorg/dpx)](https://github.com/denorg/dpx/graphs/contributors)\n[![Deno Starter](https://img.shields.io/badge/deno-starter-brightgreen)](https://denorg.github.io/starter/)\n[![Made by Denorg](https://img.shields.io/badge/made%20by-denorg-0082fb)](https://github.com/denorg)\n[![TypeScript](https://img.shields.io/badge/types-TypeScript-blue)](https://github.com/denorg/dpx)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\nInstall DPX globally using:\n\n```bash\ndeno install --allow-run --allow-net -n dpx https://deno.land/x/dpx/cli.ts\n```\n\nThen, the package is available to run:\n\n```bash\ndpx \u003cpackageName\u003e \u003cflags\u003e \u003carguments\u003e\n```\n\nUnder the hood, the CLI finds the file to run (`cli.ts` or `mod.ts`) from the Deno registry and runs it.\n\n## 💡 Examples\n\nIf you want to run the package `online` (which tells you whether you are online), you can run:\n\n```bash\ndpx online --allow-net # You are online\n```\n\nSimilarly, if you want to check whether a website is up, you can use the `up` package:\n\n```bash\ndpx up --allow-net https://google.com  # https://google.com is up\n```\n\nRequired permissions:\n\n1. `--allow-net`\n2. `--allow-run`\n\n## ⭐ API\n\nYou can use this package by importing it:\n\n```ts\nimport { dpx } from \"https://deno.land/x/dpx/mod.ts\";\n\nconst result = dpx(\"packageName\", [\"--flags\"], [\"args\"]);\n```\n\nAlternatively, you can use it directly from the CLI by using deno run:\n\n```bash\ndeno run --allow-read --allow-run https://deno.land/x/dpx/cli.ts \u003cflags\u003e \u003cpackageName\u003e \u003carguments\u003e\n```\n\n## 👩‍💻 Development\n\nRun tests:\n\n```bash\ndeno test --allow-read\n```\n\n## 📄 License\n\nMIT © [Denorg](https://den.org.in)\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://den.org.in\"\u003e\n    \u003cimg width=\"100\" alt=\"\" src=\"https://raw.githubusercontent.com/denorg/denorg/master/logo.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003csub\u003eA project by \u003ca href=\"https://den.org.in\"\u003eDenorg\u003c/a\u003e, the world's first Deno-focused community\u003cbr\u003eorganization and consulting company. \u003ca href=\"https://den.org.in\"\u003eWork with us →\u003c/a\u003e\u003c/sub\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenorg%2Fdpx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenorg%2Fdpx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenorg%2Fdpx/lists"}