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

deps-walker

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deps-walker - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

yarn.lock

2

lib/cache.js

@@ -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

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