angular-cn/tools/api-builder/angular.io-package/services/packageInfo.js

14 lines
368 B
JavaScript

'use strict';
var fs = require('fs');
var path = require('canonical-path');
/**
* Load information about this project from the package.json
* @return {Object} The package information
*/
module.exports = function packageInfo() {
var angularPackageJson= path.join('../angular','package.json');
return JSON.parse(fs.readFileSync(angularPackageJson), 'UTF-8');
}