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
- Host: GitHub
- URL: https://github.com/fsojitra/node-command-line-app
- Owner: fsojitra
- License: mit
- Created: 2022-05-13T04:20:38.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-13T05:40:50.000Z (about 3 years ago)
- Last Synced: 2025-02-03T23:48:48.372Z (4 months ago)
- Topics: cli, cli-app, cli-application, cli-tool, command-line, command-line-interface, node, node-cli, node-command-line, node-commandline, node-js, nodejs
- Language: JavaScript
- Homepage:
- Size: 653 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```