MCPcopy Index your code
hub / github.com/kangax/html-minifier / createOptions

Function createOptions

cli.js:198–210  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196}).parse(process.argv);
197
198function createOptions() {
199 var options = {};
200 mainOptionKeys.forEach(function(key) {
201 var param = program[key === 'minifyURLs' ? 'minifyUrls' : camelCase(key)];
202 if (typeof param !== 'undefined') {
203 options[key] = param;
204 }
205 else if (key in config) {
206 options[key] = config[key];
207 }
208 });
209 return options;
210}
211
212function mkdir(outputDir, callback) {
213 fs.mkdir(outputDir, function(err) {

Callers 2

processFileFunction · 0.85
writeMinifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…