console.log(os.tmpdir()) // trailing slash
console.log(__dirname) // no trailing slash
Is there a good reason why os.tmpdir() ends with a trailing slash, while __dirname does not? If there is none, it might make sense to make the return values consistent.