envinfo
CLI and programmatic environment reporter for debugging issues, collecting OS, runtime, browser, and dependency versions.
Official Documentation ↗v7.11. Check the official docs for the latest API surface.Installation
npm install envinfoMethods
No methods match this filter.
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 导出面).
run→ signature from https://raw.githubusercontent.com/tabrindle/envinfo/master/src/envinfo.js; official text: “// envinfo.run({ system: [os, cpu]}, {fullTree: true }) function run(args, options) {”
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.
Report a problem with this API docOpens a pre-filled issue on GitHub.