// package
is-windows
type: "module"
// preferences
// replacements (1)
snippet::is-windows
Simple or drop-in replacementThis package is no longer necessary. You can check if the current environment is Windows by checking if `process.platform` is equal to "win32".
// example
const isWindows = () =>
process.platform === 'win32';