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

watch-dependency-graph

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

watch-dependency-graph - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

9

package.json
{
"name": "watch-dependency-graph",
"version": "0.2.0",
"version": "0.2.1",
"description": "",

@@ -17,2 +17,9 @@ "main": "index.js",

},
"keywords": [
"dependency tree",
"module",
"graph",
"tree",
"node"
],
"repository": {

@@ -19,0 +26,0 @@ "type": "git",

19

README.md

@@ -1,14 +0,17 @@

# TBD
# watch-dependency-graph
Monitor entry files and their dependencies for changes.
```js
const graph = require('tbd-name')
const graph = require('watch-dependency-graph')
const instance = graph('./pages/**/*.js')
const instance = graph(['./path/to/file.js'])
// edit any file within the dependency tree
// say, a dep of /pages/About.js
instance.on('update', module => {
console.log(module.id) // => /pages/About.js
instance.on('update', filepaths => {
console.log(filepaths) // => [ '/User/Eric/web/path/to/file.js' ]
})
```
### License
MIT License © [Eric Bailey](https://estrattonbailey.com)
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