m-atm-machine
v3.0.3
Published
m-atm-machine is a Node.js package that simulates an ATM machine. It allows users to perform various banking operations such as deposit, withdrawal, balance inquiry, making transactions, and viewing transaction history.
Downloads
8
Readme
m-atm-machine
m-atm-machine is a Node.js package that simulates an ATM machine. It allows users to perform various banking operations such as deposit, withdrawal, balance inquiry, making transactions, and viewing transaction history.
Users
Here are the details of the initial users available in the system:
Name: Ahmad Jawad
- PIN: 1234
- ID: 9876
Name: Abu Hurairah
- PIN: 4321
- ID: 6789
Name: Naveed
- PIN: 5678
- ID: 8765
Name: Abdul Wahaj
- PIN: 9876
- ID: 2345
Installation
You can install m-atm-machine via npm:
npm install -g m-atm-machine
Usage
To start using the ATM machine, simply run the following command:
m-atm-machine
Follow the prompts to log in with your user ID and PIN. Once logged in, you'll be presented with a menu of options to choose from:
- Deposit Money: Add funds to your account.
- Withdraw Money: Withdraw cash from your account.
- Check Balance: View your current account balance.
- Make Transaction: Transfer money to another user.
- View Transaction: View your transaction history.
- Change PIN: Update your PIN.
- Exit: Exit the ATM machine.
Follow the on-screen instructions to complete each operation.
Features
- Secure login system with user ID and PIN authentication.
- Randomly generated initial balance for each user.
- Support for depositing, withdrawing, transferring money, and checking balance.
- Transaction history to track previous transactions.
- Change PIN functionality to update your PIN.
- Easy-to-use interface with inquirer prompts.
Author
m-atm-machine was created by Ahmed Jawad.