1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 1 1 1 8 | 'use strict'; var fs = require('fs'); var p = require('path'); /** * readManifest * Converts the manifest JSON file to an object * * @private * @param {String} path path to the manifest file * @return {Object} The contents of the JSON file */ module.exports = function (path) { return JSON.parse(fs.readFileSync(p.normalize(path), 'utf8')); }; |