{"id":18442,"library":"icoa-cli","title":"ICOA CLI","description":"The world's first CLI-native CTF competition terminal, now at v2.19.110. Deployed via npm with strict Node.js >=22 requirement. Serves as the primary interface for competing in ICOA CTF events directly from the terminal. Uniquely positioned as a specialized tool for cybersecurity capture-the-flag competitions, differentiating from general CTF frameworks by being CLI-first and tied to the ICOA competition ecosystem.","status":"active","version":"2.19.110","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","ctf","cli","cybersecurity","icoa","competition"],"install":[{"cmd":"npm install icoa-cli","lang":"bash","label":"npm"},{"cmd":"yarn add icoa-cli","lang":"bash","label":"yarn"},{"cmd":"pnpm add icoa-cli","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only since v2; CommonJS require() will fail.","wrong":"const icoa = require('icoa-cli')","symbol":"default","correct":"import icoa from 'icoa-cli'"},{"note":"Named export available only via ESM.","wrong":"const { run } = require('icoa-cli')","symbol":"run","correct":"import { run } from 'icoa-cli'"}],"quickstart":{"code":"import icoa from 'icoa-cli';\n\n// Set authentication token via environment\nprocess.env.ICOA_TOKEN = 'your-token-here' ?? '';\n\n// Example: start a competition session\nicoa.startCompetition({\n  event: 'ctf-2025',\n  team: 'hackers'\n}).then(console.log);","lang":"typescript","description":"Initialize ICOA CLI, authenticate using environment variable, and start a CTF competition session."},"warnings":[{"fix":"Upgrade Node.js to version 22 or later.","message":"Requires Node.js >=22.0.0; older versions cause installation failure.","severity":"breaking","affected_versions":"<22.0.0"},{"fix":"Use import syntax instead of require().","message":"ESM-only package; using require() causes runtime error.","severity":"gotcha","affected_versions":">=2.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Switch to ESM (import) or use dynamic import().","cause":"Using CommonJS require() on an ESM-only package.","error":"Error [ERR_REQUIRE_ESM]: require() of ES Module /path/node_modules/icoa-cli/index.js from /path/app.js not supported."},{"fix":"Install Node.js >=22.0.0 and retry.","cause":"Node.js version too low for package requirements.","error":"node: --experimental-loader /path/node_modules/icoa-cli/loader.mjs requires Node.js v22.0.0 or higher"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}