bonsai-analyzer
Version:
Trim your dependency tree.
19 lines (14 loc) • 522 B
JavaScript
;
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.openRawStatsFile = openRawStatsFile;
var _fs = _interopRequireDefault(require("fs"));
var _getRawStats = _interopRequireDefault(require("../types/getRawStats"));
function openRawStatsFile(statsFilePath) {
const data = JSON.parse(_fs.default.readFileSync(statsFilePath, {
encoding: 'utf8'
}));
return (0, _getRawStats.default)(data);
}