Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@statoscope/cli

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@statoscope/cli - npm Package Compare versions

Comparing version 5.7.1 to 5.7.2

12

package.json
{
"name": "@statoscope/cli",
"version": "5.7.1",
"version": "5.7.2",
"description": "Statoscope CLI tools",

@@ -24,11 +24,11 @@ "scripts": {

"@discoveryjs/json-ext": "^0.5.3",
"@statoscope/config": "5.7.1",
"@statoscope/config": "5.7.2",
"@statoscope/helpers": "5.7.1",
"@statoscope/report-writer": "5.7.1",
"@statoscope/stats-validator": "5.7.1",
"@statoscope/stats-validator": "5.7.2",
"@statoscope/stats-validator-reporter-console": "5.7.1",
"@statoscope/stats-validator-reporter-stats-report": "5.7.1",
"@statoscope/stats-validator-reporter-stats-report": "5.7.2",
"@statoscope/types": "5.7.1",
"@statoscope/webpack-model": "5.7.1",
"@statoscope/webpack-ui": "5.7.1",
"@statoscope/webpack-ui": "5.7.2",
"@types/yargs": "^17.0.0",

@@ -38,3 +38,3 @@ "open": "^8.0.4",

},
"gitHead": "064a4cec944bc1438f48afbe8c127f22d82b4a60"
"gitHead": "6de06d66c82f9a56f76ccc09807b7c2fe8515ae0"
}

@@ -33,4 +33,37 @@ # Statoscope CLI

This command uses [stats-validator](/statoscope/statoscope/packages/stats-validator). Please look at this package for more info
This command uses [stats-validator](/packages/stats-validator). Please look at this package for more info
**Example:**
1. Create a statosope-config:
**statoscope.config.js**
```js
module.exports = {
validate: {
// add webpack plugin with rules
plugins: ['@statoscope/webpack'],
reporters: [
// console-reporter to output results into cinsole (enabled by default)
'@statoscope/console',
// reporter that henerates UI-report with validation-results
['@statosope/stats-report', {open: true}],
],
rules: {
// ensures that build-time of your bundle hasn't exceeded 10 sec
'@statoscope/webpack/build-time-limits': ['error', {global: 10000}],
// any other rules
}
}
}
```
2. Exec the command:
```sh
statoscope validate --input path/to/stats.json
```
3. Analyze results in the console or in generated UI-report
### serve

@@ -37,0 +70,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc