This commit is contained in:
Simon Priet
2021-09-05 22:53:58 +02:00
commit 9e2991e668
17888 changed files with 1263126 additions and 0 deletions

28
node_modules/module-deps/bin/cmd.js generated vendored Normal file
View File

@@ -0,0 +1,28 @@
#!/usr/bin/env node
var mdeps = require('../');
var subarg = require('subarg');
var fs = require('fs');
var path = require('path');
var argv = subarg(process.argv.slice(2), {
alias: { h: 'help', t: 'transform', g: 'globalTransform' }
});
if (argv.help) return usage(0);
var JSONStream = require('JSONStream');
var files = argv._.map(function (file) {
if (file === '-') return process.stdin;
return path.resolve(file);
});
var md = mdeps(argv);
md.pipe(JSONStream.stringify()).pipe(process.stdout);
files.forEach(function (file) { md.write(file) });
md.end();
function usage (code) {
var r = fs.createReadStream(__dirname + '/usage.txt');
r.pipe(process.stdout);
if (code) r.on('end', function () { process.exit(code) });
}

9
node_modules/module-deps/bin/usage.txt generated vendored Normal file
View File

@@ -0,0 +1,9 @@
module-deps [FILES] OPTIONS
Generate json output for the entry point FILES.
OPTIONS are:
-t TRANSFORM Apply a TRANSFORM.
-g TRANSFORM Apply a global TRANSFORM.