meteor/backdoor.js
function providePlugins(code) {
  var chunks = [];
  if (typeof code === 'string') {
    code = code.split('\n');
  }
  chunks.push("function (" + Object.keys(plugins).join(', ') + ") {");
  chunks.push("  return " + code[0]);

  code.forEach(function (line, index) {
    if (index === 0) return; // omit the first line
    chunks.push("  " + line);
  });
  chunks.push("}");
  return chunks;
}
function providePlugins(code) {
  var chunks = [];
  if (typeof code === 'string') {
    code = code.split('\n');
  }
  chunks.push("function (" + Object.keys(plugins).join(', ') + ") {");
  chunks.push("  return " + code[0]);

  code.forEach(function (line, index) {
    if (index === 0) return; // omit the first line
    chunks.push("  " + line);
  });
  chunks.push("}");
  return chunks;
}
function providePlugins ( code ) { var chunks = [ ] ; if ( typeof code === 'string' ) { code = code . split ( '\n' ) ; } chunks . push ( "function (" + Object . keys ( plugins ) . join ( ', ' ) + ") {" ) ; chunks . push ( "  return " + code [ 0 ] ) ; code . forEach ( function ( line , index ) { if ( index === 0 ) return ; // omit the first line chunks . push ( "  " + line ) ; } ) ; chunks . push ( "}" ) ; return chunks ; }
Provide plugins the the local context.

@param {(string|string[])} code
@returns {string[]}
Provide plugins the the local context .