which-os
TypeScript icon, indicating that this package has built-in type declarations

1.8.2 • Public • Published

which-os License: GPL v3 npm version

Get informations about your OS.

Prerequisites

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

Package Sidebar

Install

npm i which-os

Weekly Downloads

152

Version

1.8.2

License

GPL-3.0

Unpacked Size

47 kB

Total Files

17

Last publish

Collaborators

  • ffflorian