lib/credentials/process_credentials.js
function ProcessCredentials(options) {
    AWS.Credentials.call(this);

    options = options || {};

    this.filename = options.filename;
    this.profile = options.profile || process.env.AWS_PROFILE || AWS.util.defaultProfile;
    this.get(options.callback || AWS.util.fn.noop);
  }
function ProcessCredentials(options) {
    AWS.Credentials.call(this);

    options = options || {};

    this.filename = options.filename;
    this.profile = options.profile || process.env.AWS_PROFILE || AWS.util.defaultProfile;
    this.get(options.callback || AWS.util.fn.noop);
  }
function ProcessCredentials ( options ) { AWS . Credentials . call ( this ) ; options = options || { } ; this . filename = options . filename ; this . profile = options . profile || process . env . AWS_PROFILE || AWS . util . defaultProfile ; this . get ( options . callback || AWS . util . fn . noop ) ; }
Creates a new ProcessCredentials object.

@param options [map] a set of options
@option options profile [String] (AWS_PROFILE env var or 'default')
the name of the profile to load.
@option options filename [String] ('~/.aws/credentials' or defined by
AWS_SHARED_CREDENTIALS_FILE process env var)
the filename to use when loading credentials.
@option options callback [Function] (err) Credentials are eagerly loaded
by the constructor. When the callback is called with no error, the
credentials have been loaded successfully.
Creates a new ProcessCredentials object .