nodejsHow to get current script path
Usage example
let dir = __dirname
console.log(dir)
output
/tmp
Related
More of Nodejs
- How to set content type in HTTP server
- How to send message to client from websocket server
- How to read file
- How to pipeline streams
- How to export class
- How to add seconds to date/time COPY
- How to add minutes to date/time
- How to get path dirname
- How to get current time
- How to pipe streams
See more codes...