MCPcopy Create free account
hub / github.com/kangax/html-minifier / readFile

Function readFile

cli.js:157–164  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

155program.option('-o --output <file>', 'Specify output file (if not specified STDOUT will be used for output)');
156
157function readFile(file) {
158 try {
159 return fs.readFileSync(file, { encoding: 'utf8' });
160 }
161 catch (e) {
162 fatal('Cannot read ' + file + '\n' + e.message);
163 }
164}
165
166var config = {};
167program.option('-c --config-file <file>', 'Use config file', function(configPath) {

Callers 1

cli.jsFile · 0.85

Calls 1

fatalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…