Code coverage report for lib/readManifest.js

Statements: 100% (4 / 4)      Branches: 100% (0 / 0)      Functions: 100% (1 / 1)      Lines: 100% (4 / 4)      Ignored: none     

All files » lib/ » readManifest.js
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'));
};