https://github.com/denorg/dpx
📦 CLI to run a Deno package without installing it (like npx for Deno)
https://github.com/denorg/dpx
cli deno denoland denorg npx typescript
Last synced: about 1 month ago
JSON representation
📦 CLI to run a Deno package without installing it (like npx for Deno)
- Host: GitHub
- URL: https://github.com/denorg/dpx
- Owner: denorg
- License: mit
- Created: 2020-05-23T09:54:34.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-26T20:51:19.000Z (almost 5 years ago)
- Last Synced: 2025-03-24T00:38:25.864Z (about 2 months ago)
- Topics: cli, deno, denoland, denorg, npx, typescript
- Language: TypeScript
- Homepage: https://denorg.github.io/dpx/
- Size: 33.2 KB
- Stars: 59
- Watchers: 7
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - dpx
README
# 📦 DPX
`dpx` is like `npx` for Deno, easily run a Deno CLI package.
[](https://github.com/denorg/dpx/actions)
[](https://github.com/denorg/dpx/blob/master/LICENSE)
[](https://github.com/denorg/dpx/graphs/contributors)
[](https://denorg.github.io/starter/)
[](https://github.com/denorg)
[](https://github.com/denorg/dpx)
[](https://github.com/semantic-release/semantic-release)Install DPX globally using:
```bash
deno install --allow-run --allow-net -n dpx https://deno.land/x/dpx/cli.ts
```Then, the package is available to run:
```bash
dpx
```Under the hood, the CLI finds the file to run (`cli.ts` or `mod.ts`) from the Deno registry and runs it.
## 💡 Examples
If you want to run the package `online` (which tells you whether you are online), you can run:
```bash
dpx online --allow-net # You are online
```Similarly, if you want to check whether a website is up, you can use the `up` package:
```bash
dpx up --allow-net https://google.com # https://google.com is up
```Required permissions:
1. `--allow-net`
2. `--allow-run`## ⭐ API
You can use this package by importing it:
```ts
import { dpx } from "https://deno.land/x/dpx/mod.ts";const result = dpx("packageName", ["--flags"], ["args"]);
```Alternatively, you can use it directly from the CLI by using deno run:
```bash
deno run --allow-read --allow-run https://deno.land/x/dpx/cli.ts
```## 👩💻 Development
Run tests:
```bash
deno test --allow-read
```## 📄 License
MIT © [Denorg](https://den.org.in)
A project by Denorg, the world's first Deno-focused community
organization and consulting company. Work with us →