4 ms·
It's a bit more than `process.platform == "win32"` but the bulk of it is boiler-plate for the insanity of multi-standard JS module definitions. https://github
by thrower123 7y ago
It's a bit more than `process.platform == "win32"` but the bulk of it is boiler-plate for the insanity of multi-standard JS module definitions.
https://github.com/jonschlinkert/is-windows/blame/master/index.js https://github.com/jonschlinkert/is-windows/blame/master/ind...
If you go read the code, you are doing more than most JS developers do when they pull in a massive sequoia of dependencies.
- datpuz 7y agoThere's also more to it than checking process.platform: 'process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE)
- caspervonb 7y agoChecking for Cygwin is a false positive (IMHO at-least)