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
.envfile. - Copy the contents of
.env.exampleinto your.envfile. - 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 startYour HTML file will be generated based on the JSON data.