API Reference

envinfo

CLI and programmatic environment reporter for debugging issues, collecting OS, runtime, browser, and dependency versions.

Official Documentation ↗
CompatibilityThis documentation covers version v7.11. Check the official docs for the latest API surface.

Installation

npmnpm install envinfo

Methods

envinfo is cli and programmatic environment reporter for debugging issues, collecting os, runtime, browser, and dependency versions. This page documents the core methods, installation, and common usage patterns for the current stable release.

Installation

Install envinfo with your preferred package manager using the command shown in the frontmatter. The package is published to the npm registry and ships with TypeScript types where applicable.

Core methods

The methods listed in the frontmatter cover the primary API surface. Each signature reflects the v7.11 release. Consult the official documentation linked in sourceUrl for advanced options, edge cases, and breaking changes between major versions.

Frequently asked questions

The faq section in the frontmatter answers the most common questions about envinfo, including comparisons with alternatives, configuration tips, and runtime requirements. If your question is not covered, check the source URL for the full guide.

API reference evidence

Fetched from official sources on 2026-11-08T19:24:00+08:00 via PowerShell Invoke-WebRequest https://raw.githubusercontent.com/tabrindle/envinfo/master/src/envinfo.js(函数定义与 module.exports 导出面).

FAQ

Why use it in bug reports?
It collects versions in one command, so users paste a complete environment snapshot instead of partial info.
Can I filter packages?
Yes. Pass { packages: { 'my-app': cwd } } to report only specific packages.
Does it detect browsers?
Yes. Set Browsers: ['Chrome', 'Firefox'] in the options.