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 - npm Package Compare versions

Comparing version
1.0.1
to
1.0.2
+28
README.md
# @cli4ai/lib
> Official @cli4ai package • https://cli4ai.com • Install c4ai: `npm i -g c4ai`
Shared CLI framework used by `@cli4ai/*` tool packages (env loading, JSON output, consistent errors).
## Setup
```bash
npm i @cli4ai/lib
```
## Usage
```ts
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();
```
+1
-1
{
"name": "@cli4ai/lib",
"version": "1.0.1",
"version": "1.0.2",
"description": "Shared CLI framework for c4ai tools",

@@ -5,0 +5,0 @@ "author": "cliforai",