watch-dependency-graph
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"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", |
@@ -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) |
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
18
12819
5
321