Skip to main content
6 events
when toggle format what by license comment
Nov 26, 2021 at 11:42 comment added Juha Untinen @Zac __dirname is only available on Node 14 or higher if you are using CommonJS. But ECMA is pushing towards ES modules being the standard instead of CommonJS.
Dec 2, 2020 at 22:00 comment added Zac I am on node v15.3.0 and I do not need to use path.resolve(). __dirname just works out of the box. Is your answer still relevant to ES6+?
S Apr 13, 2020 at 9:55 history suggested abdul-wahab CC BY-SA 4.0
Fixed grammar, which otherwise may have conveyed different meaning.
Apr 12, 2020 at 23:26 review Suggested edits
S Apr 13, 2020 at 9:55
Apr 12, 2020 at 19:40 review Late answers
Apr 12, 2020 at 23:27
Apr 12, 2020 at 19:22 history answered Desire Kaleba CC BY-SA 4.0