Socket
Socket
Sign inDemoInstall

which-os

Package Overview
Dependencies
1
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    which-os

Get informations about your OS


Version published
Weekly downloads
138
decreased by-32.02%
Maintainers
1
Install size
218 kB
Created
Weekly downloads
 

Readme

Source

which-os License: GPL v3 npm version

Get informations about your OS.

Prerequisites

  • Node.js >= 14
  • npm (preinstalled) or yarn

Installation

ℹ️ This is a hybrid CommonJS / ESM module.

Run yarn add which-os or npm i which-os.

Or simply run npx which-os.

Usage

Usage: which-os [options]

Get informations about your OS

Options:
  --is-linux     Is the operating system Linux?
  --is-macos     Is the operating system macOS?
  --is-windows   Is the operating system Windows?
  --is-x64       Is the processor architecture x64?
  --is-ia32      Is the processor architecture ia32?
  --is-arm       Is the processor architecture ARM?
  -i, --os-info  Output all OS informations
  -V, --verbose  Enable verbose output
  -v, --version  output the version number
  -h, --help     output usage information

TypeScript Usage

See ./src/cli.ts

Keywords

FAQs

Last updated on 01 Jan 2024

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc