bin/update-apis.js
function() {
  // Path to apis.js file
  var apis_js = path.join(__dirname, '../src', 'apis.js');
  // Create content
  // Use json-stable-stringify rather than JSON.stringify to guarantee
  // consistent ordering (see http://bugzil.la/1200519)
  var content = "/* eslint-disable */\nmodule.exports = " + stringify(apis, {
    space: '  '
  }) + ";";
  fs.writeFileSync(apis_js, content, {encoding: 'utf-8'});
}
function() {
  // Path to apis.js file
  var apis_js = path.join(__dirname, '../src', 'apis.js');
  // Create content
  // Use json-stable-stringify rather than JSON.stringify to guarantee
  // consistent ordering (see http://bugzil.la/1200519)
  var content = "/* eslint-disable */\nmodule.exports = " + stringify(apis, {
    space: '  '
  }) + ";";
  fs.writeFileSync(apis_js, content, {encoding: 'utf-8'});
}
function ( ) { // Path to apis.js file var apis_js = path . join ( __dirname , '../src' , 'apis.js' ) ; // Create content // Use json-stable-stringify rather than JSON.stringify to guarantee // consistent ordering (see http://bugzil.la/1200519) var content = "/* eslint-disable */\nmodule.exports = " + stringify ( apis , { space : '  ' } ) + ";" ; fs . writeFileSync ( apis_js , content , { encoding : 'utf-8' } ) ; }
Save APIs to apis.js
Save APIs to apis . js