Skip to content
/ dpx Public
generated from denorg/starter

πŸ“¦ CLI to run a Deno package without installing it (like npx for Deno)

License

Notifications You must be signed in to change notification settings

denorg/dpx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

23 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“¦ DPX

dpx is like npx for Deno, easily run a Deno CLI package.

Deno CI GitHub Contributors Deno Starter Made by Denorg TypeScript semantic-release

Install DPX globally using:

deno install --allow-run --allow-net -n dpx https://deno.land/x/dpx/cli.ts

Then, the package is available to run:

dpx <packageName> <flags> <arguments>

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:

dpx online --allow-net # You are online

Similarly, if you want to check whether a website is up, you can use the up package:

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:

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:

deno run --allow-read --allow-run https://deno.land/x/dpx/cli.ts <flags> <packageName> <arguments>

πŸ‘©β€πŸ’» Development

Run tests:

deno test --allow-read

πŸ“„ License

MIT Β© Denorg

A project by Denorg, the world's first Deno-focused community
organization and consulting company. Work with us β†’

About

πŸ“¦ CLI to run a Deno package without installing it (like npx for Deno)

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •