https://github.com/angular/angular
Raw File
Tip revision: 046758cf6196e928b747ea5787280cd3c5a943a9 authored by Rado Kirov on 08 January 2016, 20:09:34 UTC
docs(changelog): update change log to beta.1
Tip revision: 046758c
licensewrap.js
var fs = require('fs');
module.exports = function(licenseFile, outputFile) {
  var licenseText = fs.readFileSync(licenseFile);
  var license = "/**\n @license\n" + licenseText + "\n */\n";
  if (outputFile) {
    outputFile = licenseFile + '.wrapped';
    fs.writeFileSync(outputFile, license, 'utf8');
    return outputFile;
  } else {
    return license;
  }
};
back to top