Require() is not working in script.js file (next to html and css files).
Are there any alternatives for .js file next to HTML and CSS
async function gen() {
var child_process = require('child_process');
child_process.execSync('npm install thealtening-free',{stdio:[0,1,2]});
const bot = await altening.bot();
}
Image with error: Error: require is not defined
Can someone give me an alternative, that would work with HTML/CSS/JS combination