@webpack-cli/info
Advanced tools
Comparing version 0.1.5 to 0.1.6
60
index.js
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
var __awaiter = | ||
(this && this.__awaiter) || | ||
function(thisArg, _arguments, P, generator) { | ||
return new (P || (P = Promise))(function(resolve, reject) { | ||
function fulfilled(value) { | ||
try { | ||
step(generator.next(value)); | ||
} catch (e) { | ||
reject(e); | ||
} | ||
} | ||
function rejected(value) { | ||
try { | ||
step(generator["throw"](value)); | ||
} catch (e) { | ||
reject(e); | ||
} | ||
} | ||
function step(result) { | ||
result.done | ||
? resolve(result.value) | ||
: new P(function(resolve) { | ||
resolve(result.value); | ||
}).then(fulfilled, rejected); | ||
} | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const envinfo = require("envinfo"); | ||
const process = require("process"); | ||
/** | ||
* Prints debugging information for webpack issue reporting | ||
*/ | ||
// eslint-disable-next-line | ||
function information() { | ||
return { | ||
Binaries: ["Node", "Yarn", "npm"], | ||
Browsers: ["Chrome", "Firefox", "Safari"], | ||
System: ["OS", "CPU"], | ||
npmGlobalPackages: ["webpack", "webpack-cli"], | ||
npmPackages: "*webpack*", | ||
}; | ||
return { | ||
Binaries: ["Node", "Yarn", "npm"], | ||
Browsers: ["Chrome", "Firefox", "Safari"], | ||
System: ["OS", "CPU"], | ||
npmGlobalPackages: ["webpack", "webpack-cli"], | ||
npmPackages: "*webpack*" | ||
}; | ||
} | ||
exports.information = information; | ||
function info() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
process.stdout.write(yield envinfo.run(information())); | ||
}); | ||
return __awaiter(this, void 0, void 0, function*() { | ||
process.stdout.write(yield envinfo.run(information())); | ||
}); | ||
} | ||
exports.default = info; |
{ | ||
"name": "@webpack-cli/info", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Outputs env info for the ease of debug", | ||
@@ -22,3 +22,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "1630615841776fb39a0934459154cc5c55c0d12c" | ||
"gitHead": "ace0d4a9d06b56652a99577a4ec96f9f706cf877" | ||
} |
# webpack-cli info | ||
[![NPM Downloads][downloads]][downloads-url] | ||
## Description | ||
This pacakge returns a set of information related to the local enviroment. | ||
This package returns a set of information related to the local environment. | ||
@@ -23,4 +25,8 @@ ## Installation | ||
### CLI (via `webpack-cli`) | ||
```bash | ||
npx webpack-cli info | ||
``` | ||
[downloads]: https://img.shields.io/npm/dm/@webpack-cli/info.svg | ||
[downloads-url]: https://www.npmjs.com/package/@webpack-cli/info |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5104
8
111
32