deps-walker
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -5,3 +5,3 @@ /** | ||
const fs = require('fs'); | ||
const fs = require('graceful-fs'); | ||
const path = require('path'); | ||
@@ -8,0 +8,0 @@ const util = require('util'); |
@@ -5,3 +5,3 @@ /** | ||
const fs = require('fs'); | ||
const fs = require('graceful-fs'); | ||
const util = require('util'); | ||
@@ -8,0 +8,0 @@ const babylonParse = require('./parsers/babylon'); |
{ | ||
"name": "deps-walker", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Walks the module dependency graph. It's highly configurable.", | ||
@@ -12,8 +12,10 @@ "main": "lib/index.js", | ||
"keywords": [ | ||
"dependencies", | ||
"walker", | ||
"static analysis", | ||
"graph", | ||
"module", | ||
"node" | ||
"deps-walker", | ||
"graph-traversal", | ||
"traverse", | ||
"dependency-graph", | ||
"static-analysis", | ||
"es6", | ||
"es2015", | ||
"imports" | ||
], | ||
@@ -29,2 +31,3 @@ "author": "sergei-startsev <ai@programist.ru>", | ||
"debug": "^3.1.0", | ||
"graceful-fs": "^4.1.15", | ||
"mkdirp": "^0.5.1", | ||
@@ -31,0 +34,0 @@ "resolve": "^1.7.1" |
@@ -46,3 +46,3 @@ # deps-walker | ||
<p align='center'> | ||
<img alt='dependency graph' width='500' height='300' src='./dependency-graph.png'> | ||
<img alt='dependency graph' width='400' src='./dependency-graph.png'> | ||
</p> | ||
@@ -68,3 +68,3 @@ | ||
<p align="center"> | ||
<img alt='Breadth-first search traverse' width='500' height='300' src="./bfs.png"> | ||
<img alt='Breadth-first search traverse' width='400' src="./bfs.png"> | ||
</p> | ||
@@ -93,3 +93,3 @@ | ||
`deps-walker` uses [babylon](https://www.npmjs.com/package/babylon) parser with `sourceType: module` option by default, but you can customize any of [default options](https://github.com/babel/babel/tree/master/packages/babel-parser#options): | ||
`deps-walker` uses [babylon](https://www.npmjs.com/package/babylon) parser with `sourceType: 'module'` option by default, but you can customize any of [default options](https://github.com/babel/babel/tree/master/packages/babel-parser#options): | ||
@@ -102,3 +102,3 @@ ```js | ||
// options | ||
sourceType: module, | ||
sourceType: 'module', | ||
plugins: ['jsx', 'flow'] | ||
@@ -156,3 +156,3 @@ }) | ||
### Cache | ||
Module parsing and resolving can be resource intensive operation (CPU, I/O), cache allows to speed up traversal re-run: | ||
Module parsing and resolving can be resource intensive operation (CPU, I/O), cache allows you to speed up consecutive runs: | ||
@@ -159,0 +159,0 @@ ```js |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
70444
1
5
266
+ Addedgraceful-fs@^4.1.15
+ Addedgraceful-fs@4.2.11(transitive)