__dirname go back one directory
let reqPath = path.join(__dirname, '../');//It goes 1 folders or directories back from given __dirname.
Also in JavaScript:
- jquery get request with headers
- creating 2d array in javascript
- regular expression escape character
- jsshadow
- Sort Date string in javascript
- how do i count the number of occurrences in a string javascript
- how to pass variable via component after it's updated angular
- jquery delay to call function
- How to write on a web page javascript
- javascript recorrer json
- update(): expected spec of $splice to be an array of arrays; got 1. Did you forget to wrap your parameters in an array?
- JavaScript after
- recursion in javascript
- check if js object is empty
- regex data
- show ... in 2nd line javascript
- html video tag autoplay not working
- ignore node_modules
- return value from fetch javascript
- ORDS GET json case sensitive data keys
- cmd to create js file
- chart.js radar chart
- ajax submit form data
- how to mass comment in p5