open-index/open-npm huggingface dataset:
npm package: @swiftcrab/request
Description: ```bash 安装: pnpm add @swiftcrab/request ```
Latest version: 0.0.2

## 使用示例

```bash
安装: pnpm add @swiftcrab/request
```

#### 创建 overFetch.ts

```typescript
import {
  overFetch,
  RequestClient,
  formatToken,
  defaultResponseInterceptor,
  authenticateResponseInterceptor,
  errorMessageResponseInterceptor,
} from '@swiftcrab/request'

const baseURL = '/api'

function createRequestClient() {
  const client = new RequestClient({
    baseURL,
  })

  /** 处理重新认证, 常用于回到登录页 */
  async function doReAuthenticate() {}

  /** 处理刷新token */
  async function doRefreshToken() {
    return ''
  }

  // 请求头处理
  client.addRequestInterceptor({
    fulfilled: config => {
      return config
    },
  })

  // 返回数据格式 { data: {}, info: { code: number, message: string, status: boolean } }
  client.addResponseInterceptor(
    defaultResponseInterceptor({
      /** 响应数据中代表访问结果的字段名 */
      codeField: 'code',
      /** 响应数据中装载实际数据的字段名，或者提供一个函数从响应数据中解析需要返回的数据 */
      dataField: 'data',
      /** 当codeField所指定的字段值与successCode相同时，代表接口访问成功。如果提供一个函数，则返回true代表接口访问成功 */
      successCode: 200,
      /** 响应结构错误信息, 状态码等信息字段, 默认 '' */
      responseField: '',
    }),
  )

  client.addResponseInterceptor(
    authenticateResponseInterceptor({
      client,
      doReAuthenticate,
      doRefreshToken,
      /** 是否启用刷新令牌 */
      enableRefreshToken: true,
    }),
  )

  client.addResponseInterceptor(
    errorMessageResponseInterceptor((msg: string, error) => {
      /** 处理错误消息 */
    }),
  )

  return client
}

/** react 中使用 */
overFetch(createRequestClient, 'react')

/** vue 中使用 */
overFetch(createRequestClient, 'vue')

/** 基础请求，不会携带 token */
export const baseRequestClient = new RequestClient({ baseURL })
```

#### 使用 @swiftcrab/request

```typescript
interface IExtraOption {
  /** 是否发送请求 */
  shouldAutoRequest?: boolean
  /** 自动请求/手动请求 */
  mode?: 'auto' | 'manual'
  /** 最大接口缓存个数 */
  maxCache?: number
  /** 是否需要开启缓存 */
  noCache?: boolean
  /** 缓存接口的存活时间 */
  cacheTTL?: number
  /** axios 配置 */
  axiosOption?: AxiosRequestConfig
  /** 更新请求参数, 可用于请求 */
  timestamp?: number
}

import { useAPI, fetch } from '@swiftcrab/request'

/** useAPI请求, 常用初始化请求 */
const [data, { request, isLoading, errorMessage }] = useAPI(
  'GET/api/dictionary/getDictionaryList',
  params as Record<string, any>,
  option as IExtraOption,
)

// fetch请求, 常用手动请求
const data = await fetch('GET/api/dictionary/getDictionaryList', params as Record<string, any>, option as IExtraOption)
```
npm package: @swiftcrab/spm
Description: ```bash 安装: pnpm add @swiftcrab/spm ```
Latest version: 0.0.2

## 使用示例

```bash
安装: pnpm add @swiftcrab/spm
```

```bash
说明: react 项目可对存在 onClick 标签注册 data-spm-click 属性, vue 项目可对存在 v-on:click 和 @Click 标签注册 data-spm-click 属性, 用于事件埋点
```

#### 使用
```typescript
{
 "scripts": {
    "spm": "spm",
  },
  "spm": { "path": ["src/**/*.jsx", "src/**/*.tsx", "src/**/*.vue"] }
}
```

```bash
执行命令: npm run spm
```
npm package: @swiftedmind/hatch-mcp
Description: An MCP server that runs allow-listed shell commands.
Author: swiftedmind
Latest version: 0.2.0

# hatch-mcp

A minimal [Model Context Protocol](https://modelcontextprotocol.io/) (MCP) server that exposes a single tool for executing allow-listed shell commands. The server is intended for scenarios where an agent must delegate a privileged command (such as `xcodebuild`) to a trusted helper outside of a sandboxed environment.

## Prerequisites

- Node.js 18 or newer
- npm 9 or newer

## Installation

```bash
# Clone the repository and install dependencies
npm install

# Build the TypeScript sources
npm run build
```

You can also run the server directly with `npx ts-node src/index.ts` during development if you have `ts-node` installed.

## Launching the server

Provide the commands you want to allow at startup. Repeat `--allow` for each command or supply a comma-separated list via `--allow-list` (or the `HATCH_MCP_ALLOW` environment variable).

```bash
# Allow xcodebuild and cmake
npx hatch-mcp --allow xcodebuild --allow cmake
```

Additional examples:

```bash
# Using a comma-separated list
npx hatch-mcp --allow-list "xcodebuild,cmake"

# Using an environment variable
HATCH_MCP_ALLOW="xcodebuild" npx hatch-mcp
```

### Tool interface

The server registers a single tool named `run-allowed-command` with the following schema:

- **Input**:
  - `command` (string, required): Shell command to execute. The executable must be present in the allow list supplied at launch.
  - `outputFilePath` (string, optional): Absolute or relative path where the formatted command report should be written. This lets agents capture the full output when a client UI truncates the text response. The file is created or overwritten.
- **Output**: Structured data containing the command, exit code, terminating signal (if any), captured `stdout`/`stderr`, and the `outputFilePath` (if provided). A formatted text summary is also returned for convenience.

Example invocation payload:

```json
{
  "command": "xcodebuild -version",
  "outputFilePath": "./artifacts/xcodebuild-log.txt"
}
```

### Safety restrictions

- Only commands whose executable name exactly matches an entry in the allow list will run.
- Composite commands are rejected. The server blocks pipes (`|`), command separators (`;`), logical operators (`&&`, `||`), redirection (`<`, `>`), command substitution (`` ` `` or `$()`), and multi-line input.
- Commands run without a shell using `spawn`, so normal shell expansions are unavailable.

## Integrating with an MCP client

The server communicates over stdio. Configure your MCP-compatible client (e.g., Claude Desktop, Claude CLI, Cursor, or the MCP Inspector) to spawn the `hatch-mcp` binary with the desired allow list arguments.

## Development scripts

- `npm run build` – compile TypeScript to JavaScript in `dist/`
- `npm run lint` – type-check the project without emitting output
- `npm run clean` – remove build artifacts

Contributions and improvements are welcome.
npm package: @swiftkode/skode-coms
Description: SwitKode Coms
Author: Jaison Joseph
Latest version: 10.10.1

# SkodeComs

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 15.1.0.

## Code scaffolding

Run `ng generate component component-name --project SkodeComs` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project SkodeComs`.
> Note: Don't forget to add `--project SkodeComs` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build SkodeComs` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build SkodeComs`, go to the dist folder `cd dist/skode-coms` and run `npm publish`.

## Running unit tests

Run `ng test SkodeComs` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
npm package: @swiftmr/electron-updater
Description: Cross platform updater for electron applications
Author: Vladimir Krivosheev
Latest version: 1.1.2

# electron-updater

This module allows you to automatically update your application. You only need to install this module and write two lines of code!
To publish your updates you just need simple file hosting, it does not require a dedicated server.

See [Auto Update](https://electron.build/auto-update) for more information.

Supported OS:
 - macOS ([Squirrel.Mac](https://github.com/Squirrel/Squirrel.Mac)).
 - Windows (NSIS).
 - Linux (AppImage).

## Credits

Thanks to [Evolve Labs](https://www.evolvehq.com) for donating the npm package name.
npm package: @swiftpost/logger
Description: A simple console logger class with colors.
Author: Jon Manga
Latest version: 1.0.0

## @swiftpost/logger

A simple console logger with colors.

### Installation

```bash
pnpm add @swiftpost/logger
```

### Usage

```typescript
import { Logger } from "@swiftpost/logger";

const logger = new Logger();
```

### Scoping

You can scope the logger to a specific module or feature.

```typescript
const logger = new Logger({ scope: "auth" });
```

### Methods

#### `info(message: string, ...args: any[])`

Log an info message.

```typescript
logger.info("This is an info message");
```

##### output

> [12:00:00] <span style="color: green">INFO</span> [auth]: <span style="color: green">This is an info message</span>

#### `warn(message: string, ...args: any[])`

Log a warning message.

```typescript
logger.warn("This is a warning message");
```

##### output

> [12:00:00] <span style="color: yellow">WARN</span> [auth]: <span style="color: yellow">This is a warning message</span>

#### `error(message: string, ...args: any[])`

Log an error message.

```typescript
logger.error("This is an error message");
```

##### output

> [12:00:00] <span style="color: red">ERROR</span> [auth]: <span style="color: red">This is an error message</span>

#### `debug(message: string, ...args: any[])`

Log a debug message.

```typescript
logger.debug("This is a debug message");
```

##### output

> [12:00:00] <span style="color: blue">DEBUG</span> [auth]: <span style="color: blue">This is a debug message</span>
npm package: @swiftprotocol/assets
Description: Collection of Swift Protocol related assets & configuration files.
Author: Josef Leventon
Latest version: 1.1.1

<div align='center'><img src='https://user-images.githubusercontent.com/25516960/227661585-c7c0cf1d-f459-4afb-beff-91242d2cc413.png' height='100'></div>
<h1 align='center'>Swift Protocol Brand Kit</h1>
<p align='center'>Collection of Swift Protocol related assets & configuration files for use by third parties.<br/>Do not modify or alter in any way when using these to represent the Swift Protocol brand.</p>