@cspotcode more reason to add a test.

So what I have done in the past is actually override the process.platform value to be win32 within my test setup.

Let me know if this makes sense or if you have questions.