Searched refs:metricsFile (Results 1 – 3 of 3) sorted by relevance
33 var metricsFile = path.join(npm.config.get('cache'), 'anonymous-cli-metrics.json')36 metrics = JSON.parse(fs.readFileSync(metricsFile))55 cacheFile.write(metricsFile, JSON.stringify(metrics))61 function sendMetrics (metricsFile, metricsRegistry) { argument63 var cliMetrics = JSON.parse(fs.readFileSync(metricsFile))74 fs.unlinkSync(metricsFile)76 cacheFile.write(path.join(path.dirname(metricsFile), 'last-send-metrics-error.txt'), err.stack)
36 var metricsFile = process.argv[2]39 sendMetrics(metricsFile, metricsRegistry)
17 var metricsFile = path.join(cachedir, 'anonymous-cli-metrics.json') variable103 var data = JSON.parse(fs.readFileSync(metricsFile))121 var data = JSON.parse(fs.readFileSync(metricsFile))140 var data = JSON.parse(fs.readFileSync(metricsFile))