{"name":"envinfo","version":"7.19.0","keywords":["development","env","environment","info","issues","reporting","diagnostics"],"author":{"name":"tabrindle@gmail.com"},"license":"MIT","_id":"envinfo@7.19.0","maintainers":[{"name":"tabrindle","email":"tabrindle@gmail.com"},{"name":"gantman","email":"gantman+npm@gmail.com"}],"homepage":"https://github.com/tabrindle/envinfo#readme","bugs":{"url":"https://github.com/tabrindle/envinfo/issues"},"bin":{"envinfo":"dist/cli.js"},"pkg":{"scripts":"dist/*.js","targets":["linux","macos","win"]},"dist":{"shasum":"b4b4507a27e9900b0175f556167fd3a95f8623f1","tarball":"http://registry-npm.ywwl.com/envinfo/download/envinfo-7.19.0.tgz","fileCount":5,"integrity":"sha512-DoSM9VyG6O3vqBf+p3Gjgr/Q52HYBBtO3v+4koAxt1MnWr+zEnxE+nke/yXS4lt2P4SYCHQ4V3f1i88LQVOpAw==","signatures":[{"sig":"MEUCIH7LV51rWh9gX9n4FufOQrPCudhcSb+N0HkCgfKcSpqzAiEA5923EWqPUsvsbBSlZXVfkvwqBxTK+HO/5YWuKIcywhI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":166951,"size":51314,"noattachment":false,"key":"/envinfo/-/envinfo-7.19.0.tgz"},"jest":{"testEnvironment":"node"},"main":"dist/envinfo.js","husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS && npm run lint"}},"engines":{"node":">=4"},"gitHead":"418be702b01473756c58072b6f2fc438c8f64c4e","scripts":{"lint":"eslint src","test":"jest --env=node && eslint src && prettier -l src/**/*.js","build":"webpack --progress","start":"node src/cli.js","format":"prettier --write src/**/*.js","release":"github-release upload --owner=tabrindle --repo=envinfo --tag=${npm_package_version} 'envinfo-linux.tar.gz' 'envinfo-macos.tar.gz' 'envinfo-win.zip'","compress":"gzexe envinfo-* && upx envinfo-win.exe","lint-fix":"eslint src --fix","executable":"pkg package.json","preversion":"npm run test && webpack && git add .","postversion":"npm run executable && npm run compress && npm run release","check:format":"prettier -l src/**/*.js --verbose","postcompress":"tar -czvf envinfo-linux.tar.gz envinfo-linux && tar -czvf envinfo-macos.tar.gz envinfo-macos && zip -r -X envinfo-win.zip envinfo-win.exe","contributors:add":"all-contributors add","contributors:generate":"all-contributors generate"},"_npmUser":{"name":"tabrindle","email":"tabrindle@gmail.com"},"repository":{"url":"git+https://github.com/tabrindle/envinfo.git","type":"git"},"_npmVersion":"8.19.4","description":"Info about your dev environment for debugging purposes","directories":{},"resolutions":{"lodash":"4.17.15"},"_nodeVersion":"16.20.2","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"pkg":"^4.5.1","glob":"^7.1.6","jest":"^22.4.3","husky":"^4.2.5","which":"^1.2.14","eslint":"^5.13.0","os-name":"^3.1.0","webpack":"^5.90.1","minimist":"^1.2.5","prettier":"^1.19.1","babel-core":"7.0.0-bridge.0","babel-jest":"23.6.0","@babel/core":"^7.2.2","webpack-cli":"^5.1.4","babel-eslint":"^10.0.1","babel-loader":"^8.0.5","yamlify-object":"^0.5.1","@babel/polyfill":"^7.2.5","@commitlint/cli":"^8.3.5","@babel/preset-env":"^7.3.1","github-release-cli":"^0.4.1","prettier-eslint-cli":"^4.1.1","all-contributors-cli":"^4.11.1","eslint-plugin-import":"^2.8.0","eslint-config-prettier":"^2.7.0","eslint-plugin-prettier":"^2.3.1","eslint-config-airbnb-base":"^12.1.0","@commitlint/config-conventional":"^8.3.4","@babel/plugin-proposal-optional-chaining":"^7.2.0"},"_npmOperationalInternal":{"tmp":"tmp/envinfo_7.19.0_1760688706219_0.09761861840772901","host":"s3://npm-registry-packages-npm-production"},"readme":"<p align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/tabrindle/envinfo/master/logo.png\" align=\"center\"  width=\"700px\"/>\n  <h3 align=\"center\">envinfo generates a report of the common details needed when troubleshooting software issues, such as your operating system, binary versions, browsers, installed languages, and more</h3>\n  <hr/>\n</p>\n\n[![npm version](https://badge.fury.io/js/envinfo.svg)](https://badge.fury.io/js/envinfo) [![npm downloads per month](https://img.shields.io/npm/dm/envinfo.svg?maxAge=86400)](https://www.npmjs.com/package/envinfo) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![All Contributors](https://img.shields.io/badge/all_contributors-12-orange.svg?style=flat-square)](#contributors)\n\n## The problem\n\n-   It works on my computer\n-   \"command not found\"\n-   what version of \"command\" are you running?\n-   what version of \"different command\" are you running?\n-   do you have \"insert obscure android sdk version\"?\n-   every github issue reporting template ever:\n\n**Please mention other relevant information such as the browser version, Node.js version, Operating System and programming language.**\n\n## This solution\n\n-   Gather all of this information in one spot, quickly, and painlessly.\n\n## Installation\n\nTo use as a CLI tool, install this package globally:\n\n```sh\nnpm install -g envinfo || yarn global add envinfo\n```\n\nOr, use without installing with npx:\n\n`npx envinfo`\n\nTo use as a library in another project:\n\n```sh\nnpm install envinfo || yarn add envinfo\n```\n\n## CLI Usage\n\n`envinfo` || `npx envinfo`\n\n```bash\n  System:\n    OS: macOS Mojave 10.14.5\n    CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz\n    Memory: 2.97 GB / 16.00 GB\n    Shell: 5.3 - /bin/zsh\n  Binaries:\n    Node: 8.16.0 - ~/.nvm/versions/node/v8.16.0/bin/node\n    Yarn: 1.15.2 - ~/.yarn/bin/yarn\n    npm: 6.9.0 - ~/.nvm/versions/node/v8.16.0/bin/npm\n    pnpm: 8.7.6 - /usr/local/bin/pnpm\n    bun: 1.0.2 - /usr/local/bin/bun\n    Watchman: 4.9.0 - /usr/local/bin/watchman\n  Managers:\n    Cargo: 1.31.0 - ~/.cargo/bin/cargo\n    CocoaPods: 1.7.3 - /usr/local/bin/pod\n    Composer: 1.8.6 - /usr/local/bin/composer\n    Gradle: 5.5 - /usr/local/bin/gradle\n    Homebrew: 2.1.7 - /usr/local/bin/brew\n    Maven: 3.6.1 - /usr/local/bin/mvn\n    pip2: 19.0.3 - /usr/local/bin/pip2\n    pip3: 19.0.2 - /usr/local/bin/pip3\n    RubyGems: 2.5.2.3 - /usr/bin/gem\n  Utilities:\n    CMake: 3.13.3 - /usr/local/bin/cmake\n    Make: 3.81 - /usr/bin/make\n    GCC: 10.14. - /usr/bin/gcc\n    Git: 2.20.0 - /usr/local/bin/git\n    Mercurial: 4.5.3 - /usr/bin/hg\n    Clang: 1001.0.46.4 - /usr/bin/clang\n    Subversion: 1.10.3 - /usr/bin/svn\n  Servers:\n    Apache: 2.4.34 - /usr/sbin/apachectl\n    Nginx: 1.13.12 - /usr/local/bin/nginx\n  Virtualization:\n    Docker: 18.09.1 - /usr/local/bin/docker\n    Parallels: 13.3.0 - /usr/local/bin/prlctl\n    VirtualBox: 5.2.20 - /usr/local/bin/vboxmanage\n  SDKs:\n    iOS SDK:\n      Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2\n    Android SDK:\n      API Levels: 28\n      Build Tools: 28.0.3\n      System Images: android-28 | Google Play Intel x86 Atom\n  IDEs:\n    Android Studio: 3.2 AI-181.5540.7.32.5056338\n    Atom: 1.23.3\n    Emacs: 22.1.1 - /usr/bin/emacs\n    Nano: 2.0.6 - /usr/bin/nano\n    VSCode: 1.36.0 - /usr/local/bin/code\n    Vim: 8.0 - /usr/bin/vim\n    Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild\n  Languages:\n    Bash: 4.4.23 - /usr/local/bin/bash\n    Elixir: 1.6.2 - /usr/local/bin/elixir\n    Go: 1.11.1 - /usr/local/bin/go\n    Java: 1.8.0_192 - /usr/bin/javac\n    Perl: 5.18.4 - /usr/bin/perl\n    PHP: 7.1.23 - /usr/bin/php\n    Python: 2.7.16 - /usr/local/bin/python\n    Python3: 3.7.2 - /usr/local/bin/python3\n    R: 3.6.0 - /usr/local/bin/R\n    Ruby: 2.3.7 - /usr/bin/ruby\n    Rust: 1.16.0 - /Users/tabrindle/.cargo/bin/rustup\n  Databases:\n    MongoDB: 3.6.4 - /usr/local/bin/mongo\n    MySQL: 10.3.10 (MariaDB) - /usr/local/bin/mysql\n    PostgreSQL: 10.3 - /usr/local/bin/postgres\n    SQLite: 3.24.0 - /usr/bin/sqlite3\n  Browsers:\n    Chrome: 75.0.3770.100\n    Chrome Canary: 77.0.3847.0\n    Firefox: 68.0\n    Firefox Developer Edition: 69.0\n    Firefox Nightly: 69.0a1\n    Safari: 12.1.1\n    Safari Technology Preview: 13.0\n  npmPackages:\n    apollo-client: ^2.3.1 => 2.3.1\n    jest: ^22.2.1 => 22.2.1\n    ...\n    react: ^16.3.2 => 16.3.2\n    react-apollo: ^2.1.4 => 2.1.4\n    run4staged: ^1.1.1 => 1.1.1\n    solidarity: 2.0.5 => 2.0.5\n    styled-components: ^3.1.6 => 3.1.6\n  npmGlobalPackages:\n    create-react-app: 1.5.2\n    create-react-native-app: 1.0.0\n    envinfo: 5.10.0\n    exp: 49.2.2\n    gatsby-cli: 1.1.52\n    npm: 5.6.0\n    react-native-cli: 2.0.1\n    solidarity: 2.1.0\n    typescript: 2.8.1\n```\n\n## Programmatic Usage\n\nEnvinfo takes a configuration object and returns a Promise that resolves a string (optionally yaml, json or markdown)\n\n```javascript\nimport envinfo from 'envinfo';\n\nenvinfo.run(\n    {\n        System: ['OS', 'CPU'],\n        Binaries: ['Node', 'Yarn', 'npm'],\n        Browsers: ['Chrome', 'Firefox', 'Safari'],\n        npmPackages: ['styled-components', 'babel-plugin-styled-components'],\n    },\n    { json: true, showNotFound: true }\n).then(env => console.log(env));\n```\n\nlogs:\n\n```json\n{\n    \"System\": {\n        \"OS\": \"macOS High Sierra 10.13\",\n        \"CPU\": \"x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz\"\n    },\n    \"Binaries\": {\n        \"Node\": {\n            \"version\": \"8.11.0\",\n            \"path\": \"~/.nvm/versions/node/v8.11.0/bin/node\"\n        },\n        \"Yarn\": {\n            \"version\": \"1.5.1\",\n            \"path\": \"~/.yarn/bin/yarn\"\n        },\n        \"npm\": {\n            \"version\": \"5.6.0\",\n            \"path\": \"~/.nvm/versions/node/v8.11.0/bin/npm\"\n        }\n    },\n    \"Browsers\": {\n        \"Chrome\": {\n            \"version\": \"67.0.3396.62\"\n        },\n        \"Firefox\": {\n            \"version\": \"59.0.2\"\n        },\n        \"Safari\": {\n            \"version\": \"11.0\"\n        }\n    },\n    \"npmPackages\": {\n        \"styled-components\": {\n            \"wanted\": \"^3.2.1\",\n            \"installed\": \"3.2.1\"\n        },\n        \"babel-plugin-styled-components\": \"Not Found\"\n    }\n}\n```\n\nAll of envinfo's helpers are also exported for use. You can use envinfo as a whole, or just the parts that you need, like this:\n\n```javascript\nconst envinfo = require('envinfo');\n\n// each helper returns a promise\nconst node = await envinfo.helpers.getNodeInfo();\n\n// The promises resolve to an array of values: [\"Name\", \"Version\", \"Path\"]\n// e.g. [\"Node\", \"10.9.0\", \"/usr/local/bin/node\"]\n\nconsole.log(`Node: ${node[1]} - ${node[2]}`); // \"Node: 10.9.0 - ~/.nvm/versions/node/v8.14.0/bin/node\"\n```\n\n## CLI Options\n\n```\n    --system               Print general system info such as OS, CPU, Memory and Shell\n    --browsers             Get version numbers of installed web browsers\n    --SDKs                 Get platforms, build tools and SDKs of iOS and Android\n    --IDEs                 Get version numbers of installed IDEs\n    --languages            Get version numbers of installed languages such as Java, Python, PHP, etc\n    --binaries             Get version numbers of node, npm, watchman, etc\n    --npmPackages          Get version numbers of locally installed npm packages - glob, string, or comma delimited list\n    --npmGlobalPackages    Get version numbers of globally installed npm packages\n\n    --duplicates           Mark duplicate npm packages inside parentheses eg. (2.1.4)\n    --fullTree             Traverse entire node_modules dependency tree, not just top level\n\n    --markdown             Print output in markdown format\n    --json                 Print output in JSON format\n    --console              Print to console (defaults to on for CLI usage, off for programmatic usage)\n```\n\n## Integration\n\nenvinfo is live in:\n\n-   [React Native](https://github.com/facebook/react-native) (`react-native info`)\n-   [Create React App](https://github.com/facebook/create-react-app) (`create-react-app --info`)\n-   [Expo Environment Info](https://github.com/expo/expo-cli/tree/main/packages/expo-env-info) (`npx expo-env-info`)\n-   [Webpack](https://github.com/webpack/webpack-cli) (`webpack-cli info`)\n-   [Solidarity](https://github.com/infinitered/solidarity) (`solidarity report`)\n-   [Gatsby](https://github.com/gatsbyjs/gatsby) (`gatsby info`)\n\nenvinfo is used in the ISSUE_TEMPLATE of:\n\n-   [styled-components](https://github.com/styled-components/styled-components)\n-   [Jest](https://github.com/facebook/jest)\n-   [Apollo Client](https://github.com/apollographql/apollo-client)\n-   [FakerJS](https://github.com/faker-js/faker)\n\n## Alternatives\n\n-   type `command -v` until you smash your computer\n-   [screenfetch](https://github.com/KittyKatt/screenFetch) - fetch system and terminal information, and display a pretty ascii logo\n-   [Solidarity](https://github.com/infinitered/solidarity) - a project based environment checker\n-   write your own\n\n## License\n\nMIT\n\n## Contributing\n\nPRs for additional features are welcome! Run `npm run lint && npm run format` before committing.\n\nThis project came out of a [PR](https://github.com/facebook/react-native/pull/14428) to the React Native CLI tool - issues are reported frequently without important environment information, like Node/npm versions.\n\n## Contributors\n\nThanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore -->\n| [<img src=\"https://avatars1.githubusercontent.com/u/2925048?v=4\" width=\"100px;\"/><br /><sub><b>Trevor Brindle</b></sub>](http://trevorbrindle.com)<br />[💬](#question-tabrindle \"Answering Questions\") [📝](#blog-tabrindle \"Blogposts\") [🐛](https://github.com/tabrindle/envinfo/issues?q=author%3Atabrindle \"Bug reports\") [💻](https://github.com/tabrindle/envinfo/commits?author=tabrindle \"Code\") [📖](https://github.com/tabrindle/envinfo/commits?author=tabrindle \"Documentation\") [💡](#example-tabrindle \"Examples\") [🤔](#ideas-tabrindle \"Ideas, Planning, & Feedback\") [👀](#review-tabrindle \"Reviewed Pull Requests\") [📢](#talk-tabrindle \"Talks\") [⚠️](https://github.com/tabrindle/envinfo/commits?author=tabrindle \"Tests\") | [<img src=\"https://avatars0.githubusercontent.com/u/997157?v=4\" width=\"100px;\"/><br /><sub><b>Gant Laborde</b></sub>](http://gantlaborde.com/)<br />[📝](#blog-GantMan \"Blogposts\") [🐛](https://github.com/tabrindle/envinfo/issues?q=author%3AGantMan \"Bug reports\") [💻](https://github.com/tabrindle/envinfo/commits?author=GantMan \"Code\") [🤔](#ideas-GantMan \"Ideas, Planning, & Feedback\") | [<img src=\"https://avatars1.githubusercontent.com/u/599352?v=4\" width=\"100px;\"/><br /><sub><b>Anton Fisher</b></sub>](http://antonfisher.com)<br />[🐛](https://github.com/tabrindle/envinfo/issues?q=author%3Aantonfisher \"Bug reports\") [💻](https://github.com/tabrindle/envinfo/commits?author=antonfisher \"Code\") | [<img src=\"https://avatars1.githubusercontent.com/u/960133?v=4\" width=\"100px;\"/><br /><sub><b>Ahmad Awais ⚡️</b></sub>](https://AhmadAwais.com/)<br />[🐛](https://github.com/tabrindle/envinfo/issues?q=author%3Aahmadawais \"Bug reports\") [💻](https://github.com/tabrindle/envinfo/commits?author=ahmadawais \"Code\") | [<img src=\"https://avatars2.githubusercontent.com/u/9251453?v=4\" width=\"100px;\"/><br /><sub><b>Hasan</b></sub>](https://github.com/LEQADA)<br />[🐛](https://github.com/tabrindle/envinfo/issues?q=author%3ALEQADA \"Bug reports\") [💻](https://github.com/tabrindle/envinfo/commits?author=LEQADA \"Code\") | [<img src=\"https://avatars3.githubusercontent.com/u/1232725?v=4\" width=\"100px;\"/><br /><sub><b>Ernesto Ramírez</b></sub>](http://twitter.com/_ErnestoR)<br />[🐛](https://github.com/tabrindle/envinfo/issues?q=author%3AErnestoR \"Bug reports\") [💻](https://github.com/tabrindle/envinfo/commits?author=ErnestoR \"Code\") | [<img src=\"https://avatars1.githubusercontent.com/u/3759816?v=4\" width=\"100px;\"/><br /><sub><b>Jiawen Geng</b></sub>](https://www.gengjiawen.com)<br />[🐛](https://github.com/tabrindle/envinfo/issues?q=author%3Agengjiawen \"Bug reports\") [💻](https://github.com/tabrindle/envinfo/commits?author=gengjiawen \"Code\") [🤔](#ideas-gengjiawen \"Ideas, Planning, & Feedback\") [⚠️](https://github.com/tabrindle/envinfo/commits?author=gengjiawen \"Tests\") |\n| :---: | :---: | :---: | :---: | :---: | :---: | :---: |\n| [<img src=\"https://avatars3.githubusercontent.com/u/12520493?v=4\" width=\"100px;\"/><br /><sub><b>Zac Anger</b></sub>](https://zacanger.com)<br />[💻](https://github.com/tabrindle/envinfo/commits?author=zacanger \"Code\") [🐛](https://github.com/tabrindle/envinfo/issues?q=author%3Azacanger \"Bug reports\") | [<img src=\"https://avatars3.githubusercontent.com/u/497214?v=4\" width=\"100px;\"/><br /><sub><b>Ville Immonen</b></sub>](https://twitter.com/VilleImmonen)<br />[🐛](https://github.com/tabrindle/envinfo/issues?q=author%3Afson \"Bug reports\") [💻](https://github.com/tabrindle/envinfo/commits?author=fson \"Code\") | [<img src=\"https://avatars2.githubusercontent.com/u/27246?v=4\" width=\"100px;\"/><br /><sub><b>Olmo Maldonado</b></sub>](http://ibolmo.com)<br />[🐛](https://github.com/tabrindle/envinfo/issues?q=author%3Aibolmo \"Bug reports\") [💻](https://github.com/tabrindle/envinfo/commits?author=ibolmo \"Code\") | [<img src=\"https://avatars.githubusercontent.com/u/15812317?v=4\" width=\"100px;\"/><br /><sub><b>Rishabh Chawla</b></sub>](https://rishabhchawla.co)<br />[🐛](https://github.com/tabrindle/envinfo/issues?q=author%3Arishabh3112 \"Bug reports\") [💻](https://github.com/tabrindle/envinfo/commits?author=rishabh3112 \"Code\") | [<img src=\"https://avatars.githubusercontent.com/u/174297?v=4\" width=\"100px;\"/><br /><sub><b>Carl Taylor</b></sub>](https://github.com/Nthalk)<br />[💻](https://github.com/tabrindle/envinfo/commits?author=Nthalk \"Code\") |\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!\n","publish_time":1760688706390,"_cnpm_publish_time":1760688706390,"dist-tags":{"latest":"7.21.0","next":"5.1.1"}}