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

dependency-cruiser

Package Overview
Dependencies
Maintainers
1
Versions
536
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dependency-cruiser - npm Package Compare versions

Comparing version 1.6.2 to 1.6.3

2

package.json
{
"name": "dependency-cruiser",
"version": "1.6.2",
"version": "1.6.3",
"description": "Validate and visualize dependencies. With your rules. JavaScript, TypeScript. ES6, CommonJS, AMD.",

@@ -5,0 +5,0 @@ "bin": {

@@ -8,8 +8,10 @@ # Dependency cruiser ![Dependency cruiser](https://raw.githubusercontent.com/sverweij/dependency-cruiser/master/doc/assets/ZKH-Dependency-recolored-160.png)

- Run through the dependencies in any JavaScript or TypeScript project and ...
- ... show them e.g. in a graph
- ... validate them against a set of (your own!) rules
- ... report violated rules
- in text (for in your rules)
-
- ... **validate** them against a set of (your own) rules
- ... **report** violated rules
- in text (for in your builds)
- in graphics (for on your eyeballs)
As a nice side effect it can generate **cool dependency graphs**
you can stick on the wall to impress your grandma.
## How do I use it?

@@ -72,3 +74,4 @@

The `dot` reporter, for instance, will color edges representing violated
dependencies in a signaling color (red for errors, orange for warnings).
dependencies in a signaling color (red for errors, orange for warnings) - the
picture on top of this README is a sample of that.

@@ -81,3 +84,3 @@ The `err` reporter only emits (text) output when there's something wrong.

```
![sample err output](https://github.com/sverweij/dependency-cruiser/blob/master/doc/assets/sample-err-output.png)
![sample err output](https://raw.githubusercontent.com/sverweij/dependency-cruiser/master/doc/assets/sample-err-output.png)

@@ -98,2 +101,3 @@ - Read more about the err, dot, but also the csv and html reporters in the

- [Output format](./doc/output-format.md)
- [Road map](https://github.com/sverweij/dependency-cruiser/projects/1)

@@ -100,0 +104,0 @@ ## License

@@ -118,3 +118,3 @@ "use strict";

} catch (e) {
throw new Error(`Extracting dependencies ran afoul of... ${e.message} in ${pFileName}`);
throw new Error(`Extracting dependencies ran afoul of...\n\n ${e.message}\n... in ${pFileName}\n\n`);
}

@@ -121,0 +121,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