新增调试信息

This commit is contained in:
2025-10-27 22:15:25 +08:00
parent ae62457d8c
commit 04642cb2f0
5479 changed files with 683397 additions and 3450 deletions
+6
View File
@@ -0,0 +1,6 @@
var mdeps = require('../');
var JSONStream = require('JSONStream');
var md = mdeps();
md.pipe(JSONStream.stringify()).pipe(process.stdout);
md.end({ file: __dirname + '/files/main.js' });
+3
View File
@@ -0,0 +1,3 @@
module.exports = function (n) {
return n * 100;
};
+5
View File
@@ -0,0 +1,5 @@
var bar = require('./bar');
module.exports = function (n) {
return n * 111 + bar(n);
};
+2
View File
@@ -0,0 +1,2 @@
var foo = require('./foo');
console.log('main: ' + foo(5));
+2
View File
@@ -0,0 +1,2 @@
var foo = require('./foo');
console.log('xyz: ' + foo(6));