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

14 lines
368 B
JavaScript
Raw Normal View History

'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() {
2015-09-17 04:53:37 -04:00
var angularPackageJson= path.join('../angular','package.json');
return JSON.parse(fs.readFileSync(angularPackageJson), 'UTF-8');
}