This script allows you to fetch account details from a text file or an Excel file and export the data to either a text file or an Excel file.
- Node.js and npm should be installed on your machine.
-
Clone the repository:
git clone https://github.com/your-username/your-repository.git
-
Navigate to the project directory:
cd your-repository
-
Install dependencies:
npm install
-
Run the script:
node script.js
-
Follow the prompts:
- Enter the file name for account details retrieval (provide the path to the file).
- Enter the number of accounts to export.
- The script will fetch the account details based on the file format and export the data accordingly.
-
Once the process is complete, the exported data will be saved in the corresponding format:
- For text file export: exported-accounts.txt
- For Excel file export: exported-accounts.xlsx
-
Text file (.txt): The script reads the provided text file, which should have the following format for each account:
Username:Password:Shared_Secret:Identity_Secret
-
Excel file (.xlsx): The script reads the provided Excel file, retrieves the specified number of accounts, and exports the data to a text file.
The following npm packages are used in this script:
fs
: File system module for reading and writing files.path
: Path module for working with file paths.xlsx
: Library for parsing and manipulating Excel files.