index.js
function getKey(key) {
  if(this.conf.transform) {
    if(typeof(this.conf.transform.key) == 'function') {
      return this.conf.transform.key.call(this, key);
    }
  }
  key = delimited(key, this.conf.delimiter);
  key = key.replace(/- /, this.conf.delimiter);
  key = key.replace(/[^a-zA-Z0-9_]/, '');
  if(this.conf.prefix) {
    return this.conf.prefix + this.conf.delimiter + key.toLowerCase()
  }
  return key.toLowerCase();
}
function getKey(key) {
  if(this.conf.transform) {
    if(typeof(this.conf.transform.key) == 'function') {
      return this.conf.transform.key.call(this, key);
    }
  }
  key = delimited(key, this.conf.delimiter);
  key = key.replace(/- /, this.conf.delimiter);
  key = key.replace(/[^a-zA-Z0-9_]/, '');
  if(this.conf.prefix) {
    return this.conf.prefix + this.conf.delimiter + key.toLowerCase()
  }
  return key.toLowerCase();
}
function getKey ( key ) { if ( this . conf . transform ) { if ( typeof ( this . conf . transform . key ) == 'function' ) { return this . conf . transform . key . call ( this , key ) ; } } key = delimited ( key , this . conf . delimiter ) ; key = key . replace ( / -  / , this . conf . delimiter ) ; key = key . replace ( / [^a-zA-Z0-9_] / , '' ) ; if ( this . conf . prefix ) { return this . conf . prefix + this . conf . delimiter + key . toLowerCase ( ) } return key . toLowerCase ( ) ; }
Retrieve a suitable key for setting an environment
variable.

@api private

@param key The candidate key.

@return A converted key.
Retrieve a suitable key for setting an environment variable .