Answers for "Node.js require directroy one back"

1

__dirname go back one directory

let reqPath = path.join(__dirname, '../');//It goes 1 folders or directories back from given __dirname.
Posted by: Guest on February-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language