Skip to main content

Random Words CLI

Test CLI Deno

Random Words CLI Build using Deno

Prerequisites

Features

  • Get Random Words with Definition and Pronunciation
  • Get Pronunciation for a Word

Usage

  • Clone or Download the Repo
git clone https://github.com/mskian/deno-random-words-cli.git
cd deno-random-words-cli
  • Run the CLI without installation
# Get Random Words
deno run --allow-net --allow-read main.ts -r

(or)

deno task random

#Get Pronunciation for a Word
deno run --allow-net --allow-read main.ts -p "Hello World"

(or)

deno task pronunciation "Hello World"

# Help Section
deno run --allow-net --allow-read main.ts -h

(or)

deno task help
deno install --allow-net --name randomwords https://deno.land/x/randomwords/main.ts
  • install CLI via Cloned repo or download (For Development)
deno install --allow-net --name randomwords main.ts
# Get Random Words
randomwords -r

#Get Pronunciation for a Word
randomwords -p "Hello World"

# Help Section
randomwords -h

uninstall

deno uninstall randomwords
  • Use directly without download or install Locally by using deno.land or nest.land
deno run --allow-net https://deno.land/x/randomwords/main.ts -r
deno run --allow-net https://deno.land/x/randomwords/main.ts -p "Hello World"
deno run --allow-net https://deno.land/x/randomwords/main.ts -h
deno run --allow-net https://x.nest.land/deno-random-words-cli@0.0.3/main.ts -r
deno run --allow-net https://x.nest.land/deno-random-words-cli@0.0.3/main.ts -p "Hello World"
deno run --allow-net https://x.nest.land/deno-random-words-cli@0.0.3/main.ts -h

Credits

LICENSE

MIT