Code coverage report for asset-builder/lib/readManifest.js

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

All files » asset-builder/lib/ » readManifest.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21            1 1                   1 8    
/**
 * readManifest
 * @module
 */
'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'));
};