A tiny Deno development sandbox for quickly building small CLI utilities.
- Clone the repo
- Install Deno
- Add the
.run
directory to your path - Run
dr
- Make cool things!
Adds bash script runners for every .ts
file in the root of the repo to .run
for quick execution.
You can add permissions for individual scripts by adding a comment with //
at the beginning of the file
and including the exact flags you'd like to pass to deno like --allow-read
Handle piped text with JavaScript!
ls | js ".split('').reverse().join('')"
ls | js "x => `- \${x}`"
ls | js ".endsWith('.ts')"
ls | js "x => !x.endsWith('.ts')"
Takes a piped string and shuttles it off to OpenAI's chat completion API with a prompt to return results as markdown. Results are printed to stdout.
"Say hello!" | chat-gpt
Hello! How may I assist you today?