-
Notifications
You must be signed in to change notification settings - Fork 101
Closed
Description
I'm trying to pipe data into module-deps but it fails:
$ cat robot.js | ./node_modules/.bin/module-deps -
events.js:72
throw er; // Unhandled 'error' event
^
Error: path must be a string
at /home/username/node_modules/module-deps/node_modules/browser-resolve/node_modules/resolve/lib/async.js:15:16
at process._tickCallback (node.js:419:13)
Running module-deps with "robots.js" as input on the other hand works like a charm:
$ ./node_modules/.bin/module-deps robot.js
[
{"file":"/home/username/robot.js","id":"/home/username/robot.js","source":"module.exports = function (s) { return s.toUpperCase() + '!' };\n","deps":{},"entry":true}
]
I'm not sure how the output should look when you pipe though... How will it know the path to the entry point? Will it simply have {"file":"-","id":"-",...}
$ nodejs --version
v0.10.33
$ npm info module-deps | grep version:
version: '3.6.4',
Metadata
Metadata
Assignees
Labels
No labels