Easily convert valid JSON into HTML using this script.
-
Install the required dependencies:
npm install
-
Set up your environment:
- In the root directory, create a new
.env
file. - Copy the contents of
.env.example
into your.env
file. - Configure the following environment variables:
SOURCE_FILE
: Path to your input JSON file.OUTPUT_FILE
: Path to save the generated HTML file.
- In the root directory, create a new
To start the conversion process, run:
npm run start
Your HTML file will be generated based on the JSON data.