🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

agentfmt

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agentfmt - npm Package Compare versions

Comparing version
0.1.2
to
0.1.3
+2
-0
dist/index.d.ts

@@ -45,2 +45,3 @@ export declare const ok: (msg: string) => string;

tag?: string;
suffix?: string;
}

@@ -50,2 +51,3 @@ export interface HistogramOptions {

scale?: number;
unit?: string;
}

@@ -52,0 +54,0 @@ export declare function histogram(items: HistogramItem[], options?: HistogramOptions): string;

+3
-2

@@ -106,3 +106,3 @@ import pc from 'picocolors';

export function histogram(items, options = {}) {
const { maxBarLength = 30, scale = 10 } = options;
const { maxBarLength = 30, scale = 10, unit = '×' } = options;
return items

@@ -112,3 +112,4 @@ .map((item) => {

const tagPart = item.tag ? ` (${item.tag})` : '';
return `${item.label} ${bar} ${item.value}×${tagPart}`;
const suffixPart = item.suffix ? ` ${item.suffix}` : '';
return `${item.label} ${bar} ${item.value}${unit}${tagPart}${suffixPart}`;
})

@@ -115,0 +116,0 @@ .join('\n');

{
"name": "agentfmt",
"version": "0.1.2",
"version": "0.1.3",
"description": "Token-efficient CLI output formatting for LLM agents",

@@ -5,0 +5,0 @@ "type": "module",