This library makes creating Minecraft launchers in JavaScript very easy. It'll help you managing all the stuff Minecraft requires like downloading the game and the assets.
Install the package:
$ npm install @minecraft-js/launcherAnd then import it in your JavaScript/TypeScript file
const{ mcFolder }=require('@minecraft-js/launcher');// CommonJSimport{mcFolder}from'@minecraft-js/launcher';// ES6awaitmcFolder.downloadAssets('1.16.5');// You can put any version here