I'm looking for a way to stack jquery from the express app.js file.
Maybe this is not possible but I need to use jquery in the app.js which modifies the html file.  
Example:
app.js
const express = require('express')
const app = express()
const $ = global.jQuery = require( 'jquery' );
app.get('/', function (req, res) {
  res.sendFile(path.join(__dirname+'/index.html'));
  $("#click").click(function(e){
        console.log('click');   
    }) 
})
app.listen(3000, function () {
  console.log('Example app listening on port 3000!')
})
index.html
<!doctype html>
<html>
<head>
  <title>Express - Jquery</title>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</head>
<body> 
    <button id="click" type="button">Click</button>
</body>
</html>
Maybe I'm using the wrong method...
If someone has already done this


app.jsthat calls the Twitter API and returns the data as JSON. Then in yourindex.htmlyou can usejQueryto make anAJAXrequest to grab that data. Another option would be to use a template engine, such asejsand then use theres.rendermethod to pass data you need/get from the Twitter API.