@webpack-cli/info
Outputs info about system and webpack config
Last updated 5 years ago by ematipico .
MIT · Original npm · Tarball · package.json
$ npm install @webpack-cli/info 
SYNC missed versions from official npm registry.

webpack-cli info

NPM Downloads

Description

This package returns a set of information related to the local environment.

Installation

#npm
npm i -D @webpack-cli/info

#yarn
yarn add @webpack-cli/info -D

#npx
npx webpack info [options]

Usage

Args / Flags

Output format

Flag Description Type
--output-json To get the output as JSON [ boolean ]
--output-markdown To get the output as markdown [ boolean ]

Not supported for config

Options

Flag Description Type
--help Show help [ boolean ]
--version Show version number of webpack-cli [ boolean ]
--system , -s System information ( OS, CPU ) [ boolean ]
--binaries , -b Installed binaries (Node, yarn, npm) [ boolean ]
--browsers Installed web browsers [ boolean ]
--npmg Globally installed NPM packages ( webpack & webpack-cli only ) [ boolean ]
--npmPackages Info about packages related to webpack installed in the project [ boolean ]

Node

const info = require('@webpack-cli/info').default;

async function wrapperFunc() {
    await info({
        /* Custom Config */
    });
}
wrapperFunc();

Custom config

Config has higher precedence than system flags

// Config's relative path
{

    "config": [string]
}
    // System info
{
    "binaries": [boolean],
    "system": [boolean],
    "browsers": [boolean],
    "npmg": [boolean],
    "npmPackages": [boolean],
}

The function returns string for system info, and returns an array of strings (string[]) for config

CLI (via webpack-cli)

webpack-cli info --FLAGS #Flags are optional for custom output

Current Tags

  • 1.0.1-alpha.4                                ...           beta (5 years ago)
  • 2.0.2                                ...           latest (a year ago)
  • 1.0.1-rc.1                                ...           next (4 years ago)

32 Versions

  • 2.0.2                                ...           a year ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.5.0                                ...           2 years ago
  • 1.4.1                                ...           3 years ago
  • 1.4.0                                ...           3 years ago
  • 1.3.0                                ...           3 years ago
  • 1.2.4                                ...           4 years ago
  • 1.2.3                                ...           4 years ago
  • 1.2.2                                ...           4 years ago
  • 1.2.1                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.1-rc.1                                ...           4 years ago
  • 1.0.1-rc.0                                ...           4 years ago
  • 1.0.1-alpha.4                                ...           5 years ago
  • 1.0.1-alpha.3                                ...           5 years ago
  • 1.0.1-alpha.2                                ...           5 years ago
  • 1.0.1-alpha.1                                ...           5 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.6                                ...           5 years ago
  • 0.1.5                                ...           6 years ago
  • 0.1.4                                ...           6 years ago
  • 0.1.3                                ...           6 years ago
  • 0.1.2                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
  • 0.0.8                                ...           6 years ago
  • 0.0.7                                ...           6 years ago
  • 0.0.4                                ...           6 years ago
Downloads
Total 6
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (6)
Dev Dependencies (2)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE