nl_tokens: Build up a hash of the all plugin aliases keyed by plugin name with the value being an array of aliases . This hash will contain an entry for every installed plugin .
pl_tokens: function ( plugins , config ) { var self = this ; var aliasMap = Object . keys ( plugins ) . reduce ( function ( aliases , pluginName ) { if ( ! aliases [ pluginName ] || ! aliases [ pluginName ] . as ) { aliases [ pluginName ] = { as : [ pluginName ] } ; } aliases [ pluginName ] . as = self . _castArray ( aliases [ pluginName ] . as ) ; return aliases ; } , config ) ; var unknownConfigKeys = _ . difference ( Object . keys ( aliasMap ) , Object . <mask> ( plugins ) ) ; if ( unknownConfigKeys . length ) { this . _logUnknownPlugins ( unknownConfigKeys , 'config.pipeline.alias' ) ; } return aliasMap ; }