is-os-cli
CLI utility to check if operating system. Useful for npm scripts.
Install
npm install -g is-os-cli
Usage
In your npm script, some task that can only be ran on Windows:
{
"scripts": {
"build-app": "is-os win32 && build-command-here"
}
}