This script converts data from an Excel spreadsheet into NFT metadata files in JSON format. Each row of the spreadsheet corresponds to an NFT, and the script generates a JSON file for each row containing metadata information.
Before using this script, make sure you have the following installed:
- Node.js
- npm (Node Package Manager)
- Clone this repository to your local machine.
- Navigate to the repository's directory using the command line.
- Run the following command to install the required dependencies:
npm install xlsx- Place your Excel file (nft_name.xlsx) containing the NFT data in the same directory as the script.
- Open a terminal and navigate to the directory containing the script.
- Run the script using the following command:
node script.jsThe script will read the Excel file, convert the data to JSON, generate individual JSON files for each NFT, and create a metadata.json file containing metadata information for all NFTs.