You can just use something like `process.platform === 'win32'` here