This commit is contained in:
tatianamac
2019-11-26 14:50:43 -08:00
parent 8a55660ed0
commit 6d5445ecc5
13894 changed files with 2233957 additions and 0 deletions

30
node_modules/precinct/bin/cli.js generated vendored Executable file
View File

@ -0,0 +1,30 @@
#!/usr/bin/env node
'use strict';
var precinct = require('../');
var program = require('commander');
var fs = require('fs');
program
.version(require('../package.json').version)
.usage('[options] <filename>')
.option('--es6-mixedImports')
.option('-t, --type <type>', 'The type of content being passed in. Useful if you want to use a non-js detective')
.parse(process.argv);
var content = fs.readFileSync(program.args[0], 'utf8');
var options = {
es6: {}
};
if (program['es6MixedImports']) {
options.es6.mixedImports = true;
}
if (program.type) {
options.type = program.type;
}
console.log(precinct(content, options));