open-index/open-npm huggingface dataset:
npm package: @k239i/streamtobuffer
Description: A module that can asynchronously convert a Stream to a Buffer.
Author: k239i
Latest version: 1.0.0

# streamToBuffer

## description

A module that can asynchronously convert a Stream to a Buffer.

## Usage

TypeScript:
```ts
  import { streamToBuffer } from '@k239i/streamtobuffer';
  import * as fs from 'fs';
  const stream: any = fs.createReadStream('./bigUnnko.txt',{
    encoding: 'utf8',
    highWaterMark: 1
  });
  // async/await
  (async() => {
    const data: Buffer = await streamToBuffer(stream);
    console.log(String(data));
  })();
  streamToBuffer(stream)
    .then( data => console.log(String(data)) );
```

JavaScript:
```js
  const { streamToBuffer } = require('@k239i/streamtobuffer');
  const fs = require('fs');
  const stream = fs.createReadStream('./bigUnnko.txt',{
    encoding: 'utf8',
    highWaterMark: 1
  });
  // async/await
  (async() => {
    const data = await streamToBuffer(stream);
    console.log(String(data));
  })();
  streamToBuffer(stream)
    .then( data => console.log(String(data)) );
```
npm package: @k2_tools/url-util
Description: url utilities for javascript
Author: Simon Emmott
Latest version: 1.0.0

# K2 Tool URL Utilities
Some simple utilities for working with URLs and parameters in javascript

## Getting Started

### Install
```
npm install @k2_tools/url-util
```

### Import
```javascript
// Import the URL Utilities package in a module
import urlUtil from "@k2_tools/url-util";

// OR in a script
var urlUtil = require("@k2_tools/url-util");
```

### Usage

The urlUtil packages includes functions for working with URLs

## Contents

| Method | Description |
| --- | --- |
| [urlBuilder](./docs/URL_BUILDER.md) | Builds a URL from given properties |
npm package: @k2_tools/utils
Description: General javascript tools for web application development
Author: Simon Emmott
Latest version: 1.1.1

[![Total alerts](https://img.shields.io/lgtm/alerts/g/simonemmott/k2-tools-utils.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/simonemmott/k2-tools-utils/alerts/)
[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/simonemmott/k2-tools-utils.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/simonemmott/k2-tools-utils/context:javascript)

# K2 tools - Javascript Utilities
This npm package is a set of general javascript tools developed to support web application development.

It provides functions for formatting strings, like titleCase, camelCase etc.
If provides pipe and queue implementations.

## Getting Started

### Install
```
npm install @k2_tools/utils
```

### Import

There are several packages available through @k2_tools/utils.

#### [Pipes](./docs/PIPES.md)
``` javascript
import {pipes} from "@k2_tools/utils";
```

#### [Queues](./docs/QUEUES.md)
``` javascript
import {queues} from "@k2_tools/utils";
```

#### [Strings](./docs/STRINGS.md)
``` javascript
import {strings} from "@k2_tools/utils";
```

#### [Effects](./docs/EFFECTS.md)
``` javascript
import {effects} from "@k2_tools/utils";
```

#### [Geometry](./docs/GEOMETRY.md)
``` javascript
import {geometry} from "@k2_tools/utils";
```

#### [SVG](./docs/SVG.md)
``` javascript
import {svg} from "@k2_tools/utils";
```

#### [Threads](./docs/THREADS.md)
``` javascript
import {threads} from "@k2_tools/utils";
```


## Contributing

If you'd like to contribute to this project feel free to fork the repository and use a feature branch. Pull requests are warmly welcome

## Licensing

The code in this project is under the MIT licence
npm package: @k2party/bs3-select-propagation
Description: k2party bs3-select-propagation
Author: k2party
Latest version: 1.0.7

# k2party bs3-select-propagation

## インストール方法

### パッケージマネージャ（npm）でインストールする場合

npmコマンドでnpmjsからダウンロードします。

package.jsonのあるディレクトリで、下記のコマンドを実行します。

```sh
npm i @k2party/bs3-select-propagation
```

### パッケージマネージャを使わない場合

下記のファイルをWEBアプリケーションの公開ディレクトリ内に配置してください。

- [selectpicker-propagation.js](dist/selectpicker-propagation.js)

前提パッケージにjquery(v1)とbootstrap(v3)およびbootstrap-selectが必要です。
本パッケージのリソースを読み込む前にブラウザにローディングされるようにしてください。
（後述の[sample_01.html](demo/sample_01.html)などを参照してください）
npm package: @k2wanko/gemini-cli-sdk
Description: A lightweight SDK for building non-interactive AI agents powered by Google Gemini
Author: k2wanko
Latest version: 0.5.0

# @k2wanko/gemini-cli-sdk

A lightweight, type-safe SDK for building non-interactive AI agents powered by Google Gemini.
Built on top of `@google/gemini-cli-core`.

## Features

- **Sub-agents** — Delegate tasks to specialized child agents via `defineSubAgent()` (programmatic) or `loadSubAgents()` (markdown files), supporting both local Gemini agents and remote A2A protocol agents
- **Skill support** — Load skill directories compatible with Gemini CLI's skill format
- **Non-interactive by default** — All tool calls are auto-approved, designed for headless agent usage
- **Logging control** — Suppress noisy core logs by default (`"silent"`), or route them to a custom logger (pino, winston, etc.) via `logLevel` and `logger` options
- **Hooks** — Run shell commands at lifecycle events (BeforeTool, AfterTool, BeforeAgent, etc.) to inject context, block operations, or audit tool calls — compatible with Gemini CLI's hook protocol

## Install

```bash
npm install @k2wanko/gemini-cli-sdk
```

## Quick Start

```ts
import { GeminiAgent, GeminiEventType } from "@k2wanko/gemini-cli-sdk";

const agent = new GeminiAgent({
  instructions: "You are a friendly assistant. Keep responses short.",
});

for await (const event of agent.sendStream("Say hello")) {
  if (event.type === GeminiEventType.Content) {
    process.stdout.write(String(event.value));
  }
}
```

## Defining Custom Tools

```ts
import { GeminiAgent, defineTool, z } from "@k2wanko/gemini-cli-sdk";

const fetchUrl = defineTool(
  {
    name: "fetch_url",
    description: "Fetch the content of a URL",
    inputSchema: z.object({
      url: z.string().url(),
    }),
  },
  async (params) => {
    const res = await fetch(params.url);
    return res.text();
  },
);

const agent = new GeminiAgent({
  instructions: "You are a web research assistant.",
  tools: [fetchUrl],
});
```

## Using Skills

Load skill directories to give the agent additional capabilities:

```ts
import { GeminiAgent, GeminiEventType, skillDir } from "@k2wanko/gemini-cli-sdk";

const agent = new GeminiAgent({
  instructions: "You are a browser automation assistant.",
  skills: [
    skillDir(new URL("skills", import.meta.url).pathname),
  ],
});

for await (const event of agent.sendStream(
  "Take a screenshot of https://example.com",
)) {
  if (event.type === GeminiEventType.Content) {
    process.stdout.write(String(event.value));
  }
}
```

See [`examples/`](./examples/) for runnable samples.

## Authentication

This SDK uses the same authentication as `@google/gemini-cli-core`. Set up credentials via one of:

- **Google Cloud ADC** (default): `gcloud auth application-default login`
- **API Key**: Set `GEMINI_API_KEY` environment variable

## License

MIT
npm package: @k2wanko/secrets-cli
Description: CLI for managing secrets in OS-native credential storage. Includes Agent Skill for AI coding assistants.
Latest version: 0.1.2

# @k2wanko/secrets-cli

[![npm version](https://img.shields.io/npm/v/@k2wanko/secrets-cli.svg)](https://www.npmjs.com/package/@k2wanko/secrets-cli)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

CLI for managing secrets in OS-native credential storage. Designed for AI agents and developers to safely handle sensitive credentials like API keys, tokens, and passwords.

Includes an [Agent Skill](https://agentskills.io/) for automatic integration with AI coding assistants.

## Features

- **OS-native credential storage** - macOS Keychain, Linux libsecret, Windows Credential Manager
- **Single binary** - no runtime dependencies required
- **Simple commands** - `get`, `set`, `delete`
- **JSON output** - `--json` flag for programmatic integration
- **Secure input** - stdin piping to avoid shell history exposure
- **Agent Skill included** - compatible with the [agentskills.io](https://agentskills.io/) open standard

## Supported platforms

| Platform | Architecture |
|----------|-------------|
| macOS | ARM64, x64 |
| Linux | x64, ARM64 |
| Windows | x64 |

## Install

```bash
npm install -g @k2wanko/secrets-cli
```

## Agent Skill

This package ships an [Agent Skill](https://agentskills.io/) at `skills/secrets/SKILL.md` that enables AI coding assistants to manage credentials automatically.

### Supported agents

Compatible with any agent that supports the [agentskills.io](https://agentskills.io/) standard, including:

Claude Code, Cursor, Codex, Gemini CLI, VS Code Copilot, Windsurf, Goose, and more.

### Skill installation

```bash
# Using the skills CLI
npx skills add k2wanko/secrets-cli --skill secrets -a claude-code

# Or copy manually to your personal skills directory
cp -r skills/secrets ~/.claude/skills/secrets
```

## Usage

```bash
# Store a secret (via stdin, recommended)
echo "sk-proj-xxxxx" | secrets set --service openai --name api-key

# Store a secret (via flag)
secrets set --service openai --name api-key --value "sk-proj-xxxxx"

# Retrieve a secret
secrets get --service openai --name api-key

# Retrieve as JSON
secrets get --service openai --name api-key --json

# Delete a secret
secrets delete --service openai --name api-key
```

## Options

| Flag | Short | Description |
|------|-------|-------------|
| `--service` | `-s` | Service/application name |
| `--name` | `-n` | Account/key name |
| `--value` | `-v` | Secret value (set only) |
| `--json` | | Output in JSON format |
| `--help` | `-h` | Show help |

## Exit codes

| Code | Meaning |
|------|---------|
| 0 | Success |
| 1 | Invalid arguments |
| 2 | Secret not found |
| 3 | Operation failed |
| 4 | Unexpected error |

## Development

```bash
bun install
bun run lint
bun test

# Build binaries for all platforms
bun run build
```

## License

MIT
npm package: @k2works/claude-code-booster
Description: AI Agent Development Support Tool
Author: k2works
Latest version: 4.1.1

# claude-code-booster

## What's this

AI Agent Development Support Tool

## Install

```
npm install @k2works/claude-code-booster
```

## Usage

- Initialize/copy all assets to your project root:
```sh
npx boost
```

- Update only .claude and docs directories in an existing project:
```sh
npx boost --update
```

### What gets updated with --update
- .claude: prompts, commands, and config shipped with this package
- docs: documentation templates

### Notes
- Existing files under .claude and docs will be overwritten.
- Other files are left untouched.

## Development

```
npm install
npm start
```

## License

MIT. Copyright (c) [k2works](http://feross.org).
npm package: @k2works/intercept-booster
Description: Stylish Legacy Application Slayer
Latest version: 0.16.4

# intercept-booster

## What's this

Stylish Legacy Application Slayer

## Install

```
npm install @k2works/intercept-booster
```

## Usage

```js
npx intercept-booster
```

## Development

```
npm install
npm start
```

## License

MIT. Copyright (c) [k2works](http://feross.org).
npm package: @k2works/intercept-booster-2
Description: Stylish Legacy Application Slayer
Author: k2works
Latest version: 0.12.0

# intercept-booster-2

## What's this

Stylish Legacy Application Slayer

## Install

```
npm install @k2works/intercept-booster-2
```

## Usage

```js
npx boot
```

## Development

```
npm install
npm start
```

## License

MIT. Copyright (c) [k2works](http://feross.org).