Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mskian/deno-random-words-cli

Random Words CLI Build using Deno - Get Random Words with Definition and Pronunciation
https://github.com/mskian/deno-random-words-cli

cli command-line command-line-tool deno deno-cli denocli denoland random-generation random-words randomwordgenerator randomwords typescript

Last synced: 4 days ago
JSON representation

Random Words CLI Build using Deno - Get Random Words with Definition and Pronunciation

Awesome Lists containing this project

README

        

# Random Words CLI

[![Test CLI](https://github.com/mskian/deno-random-words-cli/actions/workflows/test.yml/badge.svg)](https://github.com/mskian/deno-random-words-cli/actions/workflows/test.yml)
![Deno](https://img.shields.io/badge/Deno-464647?style=for-the-badge&logo=deno&logoColor=white)

Random Words CLI Build using Deno

## Prerequisites

- Deno on your System

## Features

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

## Usage

- Clone or Download the Repo

```sh
git clone https://github.com/mskian/deno-random-words-cli.git
cd deno-random-words-cli
```

- Run the CLI without installation

```sh
# 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 -
- Learn about deno Script installer -

```sh
deno install --allow-net --name randomwords https://deno.land/x/randomwords/main.ts
```

- install CLI via Cloned repo or download (For Development)

```sh
deno install --allow-net --name randomwords main.ts
```

```sh
# Get Random Words
randomwords -r

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

# Help Section
randomwords -h
```

## uninstall

```sh
deno uninstall randomwords
```

- Use directly without download or install Locally by using `deno.land` or `nest.land`

```sh
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
```

```sh
deno run --allow-net https://x.nest.land/[email protected]/main.ts -r
deno run --allow-net https://x.nest.land/[email protected]/main.ts -p "Hello World"
deno run --allow-net https://x.nest.land/[email protected]/main.ts -h
```

## Credits

- Build CLI Tool with Deno -

- Random Words API -

## LICENSE

MIT