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

https://github.com/fsojitra/node-command-line-app

command line app of node using command you can add balance, channel, remove channel, get balance
https://github.com/fsojitra/node-command-line-app

cli cli-app cli-application cli-tool command-line command-line-interface node node-cli node-command-line node-commandline node-js nodejs

Last synced: about 2 months ago
JSON representation

command line app of node using command you can add balance, channel, remove channel, get balance

Awesome Lists containing this project

README

        

## Installation

Install the dependencies:

```
npm i
```

Install the package globally on your machine:

```
npm i -g
```

## Usage

1. To view all the command and it's detail:

```
node index.js
```

2. To get balance: bydefault it will be 0

```
node index.js balance
```

3. To add balance: only number can be add else it will give err

```
node index.js addBalance
```

For example:

```
node index.js addBalance 10
```

4. To Get List of chennel that is in you package : bydefault 3 basic chennel will be there

```
node index.js tariff-package
```

5. To get list of chennel of the category : category could be entertainment/ sports/ education/ regional

```
node index.js get-tarrif-package-channel-list
```
For example:

```
node index.js get-tarrif-package-channel-list entertainment
```

6. To add chennel : it will give err if chennel is already there or your balance is less than chennel price

```
node index.js add-chennel
```
For example:

```
node index.js add-chennel entertainmentChanel1
```

7. To remove chennel : it will give err if chennel is not in you plan

```
node index.js remove-chennel
```
For example:

```
node index.js remove-chennel entertainmentChanel1
```