This commit is contained in:
zino
2021-03-02 00:06:38 +01:00
parent 3a8aab0e9a
commit eeb745b013
3567 changed files with 1234741 additions and 0 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));