function encoding(nameOrCode) {
        if (
          Object.prototype.hasOwnProperty.call(
            constants.names,
            /** @type {BaseName} */ (nameOrCode)
          )
        ) {
          return constants.names[/** @type {BaseName} */ (nameOrCode)];
        } else if (
          Object.prototype.hasOwnProperty.call(
            constants.codes,
            /** @type {BaseCode} */ (nameOrCode)
          )
        ) {
          return constants.codes[/** @type {BaseCode} */ (nameOrCode)];
        } else {
          throw new Error(`Unsupported encoding: ${nameOrCode}`);
        }
      }
/**
       * Get the encoding by name or code
       *
       * @param {BaseNameOrCode} nameOrCode
       * @returns {Base}
       * @throws {Error} Will throw if the encoding is not supported
       */
Get the encoding by name or code
@param {BaseNameOrCode} nameOrCode
@returns {Base}
@throws {Error} Will throw if the encoding is not supported
Get the encoding by name or code @param { BaseNameOrCode } nameOrCode @returns { Base } @throws { Error } Will throw if the encoding is not supported
function encoding(nameOrCode) {
        if (
          Object.prototype.hasOwnProperty.call(
            constants.names,
             (nameOrCode)
          )
        ) {
          return constants.names[ (nameOrCode)];
        } else if (
          Object.prototype.hasOwnProperty.call(
            constants.codes,
             (nameOrCode)
          )
        ) {
          return constants.codes[ (nameOrCode)];
        } else {
          throw new Error(`Unsupported encoding: ${nameOrCode}`);
        }
      }
function encoding ( nameOrCode ) { if ( Object . prototype . hasOwnProperty . call ( constants . names , ( nameOrCode ) ) ) { return constants . names [ ( nameOrCode ) ] ; } else if ( Object . prototype . hasOwnProperty . call ( constants . codes , ( nameOrCode ) ) ) { return constants . codes [ ( nameOrCode ) ] ; } else { throw new Error ( ` ${ nameOrCode } ` ) ; } }
Get the encoding by name or code
 @param {BaseNameOrCode} nameOrCode
 @returns {Base}
 @throws {Error} Will throw if the encoding is not supported
Get the encoding by name or code @param { BaseNameOrCode } nameOrCode @returns { Base } @throws { Error } Will throw if the encoding is not supported
/** @type {BaseName} */ /** @type {BaseName} */ /** @type {BaseCode} */ /** @type {BaseCode} */