Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

408 B
Raw Blame
'use strict';

const users = [
  { name: 'Ada_Lovelace', role: 'admin' },
  { name: 'Grace-Hopper', role: 'engineer' }
];

/** Case and hyphen/underscore are noise; surrounding whitespace is not. */
function fold(name) {
  return String(name).toLowerCase().replace(/-/g, '_');
}

function findUser(name) {
  return users.find(user => fold(user.name) === fold(name));
}

module.exports = { users, findUser };