index.js
function uninstall(name) {
  if (typeof name !== 'string' || name === '') {
    throw new TypeError('The algorithm name must be an non-empty string.');
  }

  const hashFunc = funcs[name];

  if (!hashFunc) {
    throw new TypeError(`The ${name} algorithm is not installed`);
  }

  delete funcs[name];
  queue.splice(queue.indexOf(name), 1);
}
function uninstall(name) {
  if (typeof name !== 'string' || name === '') {
    throw new TypeError('The algorithm name must be an non-empty string.');
  }

  const hashFunc = funcs[name];

  if (!hashFunc) {
    throw new TypeError(`The ${name} algorithm is not installed`);
  }

  delete funcs[name];
  queue.splice(queue.indexOf(name), 1);
}
function uninstall ( name ) { if ( typeof name !== 'string' || name === '' ) { throw new TypeError ( 'The algorithm name must be an non-empty string.' ) ; } const hashFunc = funcs [ name ] ; if ( ! hashFunc ) { throw new TypeError ( ` ${ name } ` ) ; } delete funcs [ name ] ; queue . splice ( queue . indexOf ( name ) , 1 ) ; }
Uninstalls a password hashing function previously installed.
@public
@param {string} name The name of the algorithm to uninstall or 'last' to
uninstall the last one installed.
Uninstalls a password hashing function previously installed .