Socket
Book a DemoInstallSign in
Socket

is-os-cli

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-os-cli

CLI utility to check if operating system.

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

is-os-cli

npm standard

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"
  }
}

License

MIT

Keywords

cli

FAQs

Package last updated on 07 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts