Socket
Socket
Sign inDemoInstall

envinfo

Package Overview
Dependencies
92
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

envinfo


Version published
Maintainers
1
Install size
1.35 MB
Created

Package description

What is envinfo?

The envinfo npm package is a tool that generates information about the development environment. It can be used to report system information, software versions, and configuration details, which is particularly useful for debugging and issue reporting in software projects.

What are envinfo's main functionalities?

System Information

This command prints information about the system, such as OS, CPU, Memory, and Shell.

envinfo --system

Browsers

This command lists installed web browsers and their versions.

envinfo --browsers

Languages

This command shows the installed languages and their versions, like Node.js, Python, Ruby, etc.

envinfo --languages

Utilities

This command provides information about installed utilities like Git, Make, GCC, etc.

envinfo --utilities

Servers

This command reports on server software like Apache, Nginx, and IIS.

envinfo --servers

Virtualization

This command lists virtualization tools like Docker, Parallels, and VirtualBox.

envinfo --virtualization

IDEs

This command shows the installed Integrated Development Environments (IDEs) and their versions.

envinfo --ides

SDKs

This command lists the installed SDKs for platforms like iOS, Android, and .NET.

envinfo --sdks

Custom Configuration

This command allows for custom configuration to include duplicate packages in the output and the full dependency tree.

envinfo --duplicates --fullTree

Other packages similar to envinfo

Readme

Source

envinfo

Reporting issues is a pain. Responding to issues is a pain. Make it a bit better.

Installation & Usage

Install this package globally:

npm install -g envinfo

envinfo
# Outputs.
Environment:
  OS: macOS High Sierra 10.13
  Node: 8.9.0
  Yarn: 1.2.1
  npm: 5.5.1
  Watchman: 4.9.0
  Xcode: Xcode 9.0 Build version 9A235
  Android Studio:  2.3 AI-162.3934792

Options

  • --packages - Optionally add packages from your package.json: takes either boolean or string in CLI and also array via API

envinfo --packages react,react-native

Environment:
  OS: macOS High Sierra 10.13
  Node: 8.9.0
  Yarn: 1.2.1
  npm: 5.5.1
  Watchman: 4.9.0
  Xcode: Xcode 9.0 Build version 9A235
  Android Studio:  2.3 AI-162.3934792
Packages: (wanted => installed)
  react:  16.0.0-alpha.6 => 16.0.0-alpha.6
  react-native:  0.44.0 => 0.44.0

Or all of your packages like this: envinfo --packages

Environment:
  OS:  macOS Sierra 10.12.5
  Node:  8.1.3
  Yarn:  0.27.5
  npm:  5.1.0
  Xcode:  Xcode 8.3.3 Build version 8E3004b
  Android Studio:  2.3 AI-162.3934792
Packages: (wanted => installed)
  eslint: ^4.0.0 => 4.2.0
  prettier-eslint-cli: ^4.1.1 => 4.1.1
  minimist: ^1.2.0 => 1.2.0
  os-name: ^2.0.1 => 2.0.1
  which: ^1.2.14 => 1.2.14
  • --clipboard - Optionally copy directly to your clipboard with envinfo --clipboard
  • --cpu - Add CPU and architecture information with envinfo --cpu
Environment:
  OS: macOS High Sierra 10.13
  CPU: x64 Intel(R) Core(TM) i7-4870HQ CPU @ 8.50GHz
  Node: 8.9.0
  Yarn: 1.2.1
  npm: 5.5.1
  Watchman: 4.9.0
  Xcode: Xcode 9.0 Build version 9A235
  Android Studio:  2.3 AI-162.3934792
  • --duplicates - will search given packages for duplicates, display in parentheses
Packages: (wanted => installed)
  minimist: ^1.2.0 => 0.0.8, 1.2.0
  • --fullTree - will traverse and print the entire dependency tree **only works when --packages is array or string
...
Packages: (wanted => installed)
  abab: 1.0.4
  xtend: 4.0.1 (2.0.6, 2.1.2, 2.2.0, 3.0.0)
  abstract-leveldown: 0.12.4
  accepts: 1.3.3
...
  • --browsers - will print the versions of Chrome, Firefox and Safari if installed.
...
Browsers:
  Chrome: 62.0.3202.94
  Chrome Canary: 64.0.3271.0
  Firefox: 57.0
  Firefox Developer Edition: 57.0
  Firefox Nightly: 58.0a1
  Safari: 11.0
  Safari Technology Preview: 11.1
...

Contributing

PRs for additional features are welcome! Run npm run lint && npm run format before commiting.

This project came out of a PR to the React Native CLI tool - issues are reported frequently without important environment information, like Node/npm versions.

envinfo is now live in react-native as of v0.48 as react-native info!

Keywords

FAQs

Last updated on 18 Jan 2018

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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc