Random Words CLI Build using Deno
- Deno on your System https://deno.land/#installation
- Get Random Words with Definition and Pronunciation
- Get Pronunciation for a Word
- 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
- install via Deno Modules - https://deno.land/x/randomwords
- Learn about deno Script installer - https://deno.land/manual/tools/script_installer
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
deno uninstall randomwords
- Use directly without download or install Locally by using
deno.land
ornest.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
- Build CLI Tool with Deno - https://dev.to/soubai/build-cli-tool-with-deno-1me7
- Random Words API - https://github.com/mcnaveen/Random-Words-API
MIT