New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@cli4ai/lib

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cli4ai/lib

Shared CLI framework for cli4ai tools

latest
Source
npmnpm
Version
1.0.9
Version published
Maintainers
1
Created
Source

@cli4ai/lib

Official @cli4ai package • https://cli4ai.com • Install cli4ai: npm i -g cli4ai

Shared CLI framework used by @cli4ai/* tool packages (env loading, JSON output, consistent errors).

Setup

npm i @cli4ai/lib

Usage

import { cli, output, withErrorHandling, env } from '@cli4ai/lib/cli.ts';

const program = cli('mytool', '1.0.0', 'Example tool');

program
  .command('hello')
  .action(withErrorHandling(async () => {
    const name = env('NAME');
    output({ hello: name });
  }));

program.parse();

Keywords

cli4ai

FAQs

Package last updated on 21 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts