open-index/open-npm huggingface dataset:
npm package: @nmgolden/http-client
Description: ## 功能说明
Author: siger
Latest version: 0.0.5

# 基于蓝信的 baseApi

## 功能说明

- 提供基于 axios 的 http 请求方法 req，提取响应体中的 data 给调用者
- 通过服务器响应错误码判断是否需重新登录。自动判断是否在蓝信客户端，或者普通浏览器。根据不同的环境进行自动登录。

## 使用方式

- `yarn add @nmgolden/base-api` 引入包。
- .env 中配置 VITE_CONTEXT_PATH（web 应用上下文）、 VITE_API_PREFIX （api 前缀）、VITE_LOGIN_SUCCESS_URI（通过授权页面登录成功后的跳转页面地址）
- web 端编写 VITE_LOGIN_SUCCESS_URI 对应的页面，接收 code （免登陆授权码) 和 state(登录页跳转之前的页面地址)。
- 服务端需提供 auth/authUrl 、appId 接口
npm package: @nmgolden/zui
Description: mobile ui framework
Author: siger
Latest version: 0.16.0

## ZUI 基于 Vue3 的移动前端 ui 组件

## 发布历史

### 0.16.0

发布时间 2026/03/06

- 修复：zui-selector 中 options 初始化晚于 modelValue 时，导致选中项无法回显

### 0.15.0

发布时间 2025/09/20

- 新增：image-uploader 新增 loading 属性

### 0.14.2

发布时间 2025/04/28

- 修复： 默认 user-select 区分移动端和 pc 端

### 0.14.0

发布时间 2024/05/09

- 新增：attachments 新增 edit-actions 参数，用于限制可执行的编辑操作

### 0.13.0

发布时间 2024/05/09

- 新增：imageUploader 新增 edit-actions 参数，用于限制可执行的编辑操作

### 0.12.4

发布时间 2024/05/09

- 修复：input 字体设置为 bold 是 clear 图标受影响的问题

### 0.12.4

发布时间 2024/05/09

- 修复：input 为多行时字符限制显示异常

### 0.10.1

发布时间 2023/07/19

- 修复：input 设定 padding 问题

### 0.10.0

发布时间 2023/07/06

- 新增：input 多行显示可指定行数，默认 3 行
- 修正：button 禁用样式

### 0.9.3

发布时间 2023/06/02

- 修正：ZuiLoading 显示背景时背景框较小的问题。

### v0.8.0

发布时间 2022/12/16

    新增：ZuiRedDot 组件
npm package: @nmh/react-native-device-auth
Description: React Native KeyguardManager And LocalAuthentication Lib (Android and Ios)
Author: naingmahar
Latest version: 1.0.5

# react-native-device-auth

React Native KeyguardManager And LocalAuthentication Lib (Android and Ios)

## Installation

```sh
npm install @nmh/react-native-device-auth
```

#### Android

1. Insert the following lines `android/app/src/AndroidManifest.xml`:
    ```
    <uses-permission android:name="android.permission.USE_FINGERPRINT" />
    <uses-permission android:name="android.permission.USE_BIOMETRIC" />
    ```

#### IOS

1. Insert the following lines `ios/project/info.plist`:
    ```
    <key>NSFaceIDUsageDescription</key>
    <string>Enabling Face ID allows you quick and secure access to your account.</string>
    ```



## Usage

```js
import RNDeviceAuth from '@nmh/react-native-device-auth';;

// ...

const LABEL = 'This is a secure area, please authenticate yourself';

authenticate () {
        return new Promise((resolve,reject)=>{
            RNDeviceAuth.authenticate({reason:this._LABEL})
                .then((status:any)=>console.log(status))
                .catch((error:any)=>console.log(error))
        })
}

```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
npm package: @nmh/react-native-noke
Description: noke lib for react native 
Author: naingmahar
Latest version: 1.1.0

# react-native-noke

noke lib for react native 

## Installation


```sh
npm install react-native-noke
```


## Usage


```js
import { multiply } from 'react-native-noke';

// ...

const result = multiply(3, 7);
```


## Contributing

- [Development workflow](CONTRIBUTING.md#development-workflow)
- [Sending a pull request](CONTRIBUTING.md#sending-a-pull-request)
- [Code of conduct](CODE_OF_CONDUCT.md)

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
npm package: @nmhillusion/n2gendocs-ts
Description: Tool to generate docs for typescript from typescript file
Author: nmhillusion
Latest version: 2022.1.7

# n2gendocs-ts

> Tool to generate docs from typescript file

---
## Usage:
```typescript

import { DocsGenerator } from "@nmhillusion/n2gendocs-ts/generators/generator";
import * as path from "path";

const docsOutput: string = new DocsGenerator(
  path.join(__dirname, `../sample_input/class1.ts`)
).generate();

```

## Support Types:
- Class
- Function
- Interface / Type
- Export statement

## Example input

```typescript

export class Class1 {
  /**
   * description of method1
   */
  method1() {}

  /**
   * description of method2
   * @param x paramter of x
   * @returns add 1 to x
   */
  method2(x: number) {
    return x + 1;
  }

  /**
   * test method 3
   * @param x parameter x
   * @param extra parater extra, is optional
   * @returns toString of method
   */
  method3(x: string, extra?: number) {
    return `${x} -> ${extra}`;
  }

  /**
   * locate a position
   * @param position to locate
   * @returns locate to position and show it
   */
  method4(position: { x: number; y: number }) {
    const { x, y } = position;
    return `Position is (${x}, ${y})`;
  }
}

```

## Example output

```markdown

# Class: `Class1`
    

## Properties

`None`

<br/>
<br/>

## Methods

### Function: `method1()`

    description of method1

#### Parameter List:



#### Return Type: `Not defined` 

<br/>
<br/>

### Function: `method2(x: number)`

    description of method2

#### Parameter List:

- **x**: `number` -- paramter of x


#### Return Type: `Not defined` --- add 1 to x

<br/>
<br/>

### Function: `method3(x: string, extra?: number)`

    test method 3

#### Parameter List:

- **x**: `string` -- parameter x

- **extra**: `number` _(optional)_ -- parater extra, is optional


#### Return Type: `Not defined` --- toString of method

<br/>
<br/>

### Function: `method4(position: { x: number; y: number })`

    locate a position

#### Parameter List:

- **position**: `{ x: number; y: number }` -- to locate


#### Return Type: `Not defined` --- locate to position and show it

```
npm package: @nmhillusion/n2log4web
Description: n2logger - a logger for web: js and node
Author: nmhillusion
Latest version: 2023.108.1

# n2log4web

> a simple logger for web, node and browser

---

## Usage

```typescript
import {
  LogFactory,
  LoggerConfig,
  LogLevel,
} from "@nmhillusion/n2log4web/core/index";

test("test simple log with setting default config", () => {
  LogFactory.setDefaultConfig(
    new LoggerConfig()
      .setLoggableLevel(LogLevel.DEBUG)
      .setFocusType("background")
  );

  const logger = LogFactory.getNodeLog(__filename);

  logger.info("[i1] simple log");
  logger.debug("[d1] simple log");
  logger.warn("[w1] simple log");
  logger.error("[e1] simple log");

  const logger2 = LogFactory.fromConfig(
    new LoggerConfig().setIncludingTimestamp(false)
  ).getNodeLog(__filename);

  logger2.info("[i2] simple log");
  logger2.debug("[d2] simple log");
  logger2.warn("[w2] simple log");
  logger2.error("[e2] simple log");
});
```

## Output

![OutputImage](screenshots/example-1.png)
npm package: @nmhjklnm/cctool
Description: Claude API Provider Switcher
Latest version: 0.1.4

# cl - Claude API Provider Switcher

Version: v0.1.2

快速切换 Claude API 供应商配置的命令行工具。
此工具最大的优势不是人来使用，而是为Coding Agent自己使用提供方便。你可以直接要求它"cl -h 然后把这个 xxx新供应商给我配上"

## 安装

```bash
npm i -g @nmhjklnm/cctool
```

## 使用

```bash
cctool                      # 查看当前供应商
cctool list                 # 列出所有供应商
cctool <name>               # 切换到指定供应商
cctool add <name> <url> <key>  # 添加供应商
cctool rm <name>            # 删除供应商
cctool init                 # 测试所有连接
```

在脚本/非交互场景更新环境变量：

```bash
# 切换并输出 export（可用于 eval）
cctool yunwu | bash

# 或只输出当前默认的 export
cctool --print-env | bash
```

## 示例

```bash
# 添加供应商
cctool add yunwu https://yunwu.ai/v1 sk-xxx
cctool add official https://api.anthropic.com sk-ant-xxx

# 切换
cctool yunwu      # 切换到 yunwu
cctool official   # 切换到官方

# 查看
cctool            # 显示当前: yunwu
cctool ls         # 列出所有供应商
```

## 原理

切换供应商时自动设置环境变量：

- `ANTHROPIC_BASE_URL` - API 基础 URL
- `ANTHROPIC_AUTH_TOKEN` - API 密钥

配置存储在 `~/.claude/providers.json`。

## 卸载

```bash
npm rm -g @nmhjklnm/cctool
```

## License

MIT
npm package: @nmipayments/nmi-core
Description: NMI Embedded Components Core Utilities
Latest version: 1.0.1

# @nmipayments/nmi-core

Core utilities and shared types for NMI Embedded Components

## Overview

`@nmipayments/nmi-core` is a support package that provides common types, utilities, and shared functionality for other NMI packages. It includes shared types such as the Appearance API, payment method definitions, and other common interfaces used across NMI Embedded Components.

## Installation

```bash
npm install @nmipayments/nmi-core
```

**Note:** This package is typically installed automatically as a dependency of other NMI packages (`@nmipayments/nmi-pay`, `@nmipayments/nmi-pay-react`, etc.). You generally don't need to install it directly unless you're building custom integrations.
npm package: @nmipayments/nmi-pay
Description: NMI Embedded Component for Payments
Latest version: 1.0.1

# @nmipayments/nmi-pay

NMI Embedded Component for Payments - Svelte-based Implementation

## Installation

```bash
npm install @nmipayments/nmi-pay
```

## Documentation

For complete documentation, integration guides, API reference, and examples, please visit the [NMI Developer Documentation](https://docs.nmi.com/docs/payment-component).
npm package: @nmipayments/nmi-pay-react
Description: NMI Embedded Component for Payments in React
Latest version: 1.0.1

# @nmipayments/nmi-pay-react

React components for NMI Embedded Payments

## Installation

```bash
npm install @nmipayments/nmi-pay-react
```

**Peer Dependencies:**
- `react` >= 16.8.0
- `react-dom` >= 16.8.0

## Documentation

For complete documentation, integration guides, API reference, and examples, please visit the [NMI Developer Documentation](https://docs.nmi.com/docs/payment-component).
npm package: @nmipayments/nmi-reporting
Description: NMI Embedded Component for Reporting
Latest version: 0.0.3

# @nmipayments/nmi-reporting

NMI Embedded Component for various reporting use cases

## Installation

```bash
npm install @nmipayments/nmi-reporting
```

## Documentation

For complete documentation, integration guides, API reference, and examples, please visit the [NMI Developer Documentation](https://docs.nmi.com/docs/quick-start).
npm package: @nmipayments/nmi-reporting-react
Description: NMI Embedded Component for Reporting in React
Latest version: 0.0.3

# @nmipayments/nmi-reporting-react

NMI Embedded React Component for various reporting use cases

## Installation

```bash
npm install @nmipayments/nmi-reporting-react
```

**Peer Dependencies:**
- `react` >= 16.8.0
- `react-dom` >= 16.8.0

## Documentation

For complete documentation, integration guides, API reference, and examples, please visit the [NMI Developer Documentation](https://docs.nmi.com/docs/quick-start).
npm package: @nmiton/modal
Description: A simple, customizable modal component for React
Author: nmiton
Latest version: 1.0.15

# Components Modal React

A simple, customizable modal component for React

## Getting Started

Install this package:

```shell
npm i @nmiton/modal
```

Import the Modal component:

```js
import { Modal } from "@nmiton/modal";
```

## Usage

```js
import React, { useState } from 'react';
import { Modal } from "@nmiton/modal";


const App = () => {
  const [showModal, setShowModal] = useState(false);

  return (
    <div>
      <button onClick={() => setShowModal(true)}>Open Modal</button>
      {showModal && (
	<Modal id="My modal" closeModal={() => setShowModal(false)} title={<h2>Modal Title</h2>}>
          <h3>This is a Modal</h3>
          <p>Here is some modal content!</p>
	</Modal>
      )}
    </div>
  );
};

export default App;
```

# Props

The Modal component accepts the following props:

| Prop         | Type              | Required | Description                                    |
| ------------ | ----------------- | -------- | ---------------------------------------------- |
| `closeModal` | `() => void`      | Yes      | Callback function to handle closing the modal  |
| `children`   | `React.ReactNode` | Yes       | The content to be displayed inside the modal   |
| `id`         | `String`          | No       | Modal Identifier                               |
| `className`  | `String`          | No       | Modal className                                |
| `title`      | `React.ReactNode` | No       | The modal title content                        |

# CSS Styling

If you want to customize the styles, you can either modify Modal.css or override the styles in your own stylesheet by targeting the following class names:

- **`.modal-overlay`** – The overlay behind the modal.
- **`.modal-header`** – The header modal container.
- **`.modal-content`** – The main modal container.
- **`.btn-close`** – The close button inside the modal.
npm package: @nmjs/tslint-config-node
Description: A set of tslint rules and configuration for NodeJS typescript project.
Author: Nilesh Mali
Latest version: 2.0.0

# tslint-config-node

[![npm (scoped)](https://img.shields.io/npm/v/@nmjs/tslint-config-node.svg?style=flat-square)](https://www.npmjs.com/package/@nmjs/tslint-config-node)
[![npm](https://img.shields.io/npm/dt/@nmjs/tslint-config-node.svg?style=flat-square)](https://www.npmjs.com/package/@nmjs/tslint-config-node)
[![npm](https://img.shields.io/npm/l/@nmjs/tslint-config-node.svg?style=flat-square)](https://www.npmjs.com/package/@nmjs/tslint-config-node)
[![dependencies Status](https://david-dm.org/nileshmali/code-style/status.svg?style=flat-square&path=packages/tslint-config-node)](https://david-dm.org/nileshmali/code-style?path=packages/tslint-config-node)
[![devDependencies Status](https://david-dm.org/nileshmali/code-style/dev-status.svg?style=flat-square&path=packages/tslint-config-node)](https://david-dm.org/nileshmali/code-style?path=packages/tslint-config-node&type=dev)

Set of tslint rules configuration to use for NodeJs projects.
npm package: @nmlc/react-scripts
Description: Configuration and scripts for Create React App.
Latest version: 3.1.4

# react-scripts

This package includes scripts and configuration used by [Create React App](https://github.com/facebook/create-react-app).<br>
Please refer to its documentation:

- [Getting Started](https://facebook.github.io/create-react-app/docs/getting-started) – How to create a new app.
- [User Guide](https://facebook.github.io/create-react-app/) – How to develop apps bootstrapped with Create React App.
npm package: @nmng108/xiangqiboardjs
Description: JavaScript xiangqiboard widget
Author: @lengyanyu258
Latest version: 0.3.3

# xiangqiboard.js

xiangqiboard.js is a JavaScript xiangqiboard component. It depends on [jQuery].

Please see [xiangqiboardjs.com] for documentation and examples.

## What is xiangqiboard.js?

xiangqiboard.js is a JavaScript xiangqiboard component with a flexible "just a
board" API that

xiangqiboard.js is a standalone JavaScript Xiangqi Board. It is designed to be "just
a board" and expose a powerful API so that it can be used in different ways.
Here's a non-exhaustive list of things you can do with xiangqiboard.js:

- Use xiangqiboard.js to show game positions alongside your expert commentary.
- Use xiangqiboard.js to have a tactics website where users have to guess the best
  move.
- Integrate xiangqiboard.js and [xiangqi.js] with a PGN database and allow people to
  search and playback games (see [Example 5000])
- Build a xiangqi server and have users play their games out using the
  xiangqiboard.js board.

xiangqiboard.js is flexible enough to handle any of these situations with relative
ease.

## What can xiangqiboard.js **not** do?

The scope of xiangqiboard.js is limited to "just a board." This is intentional and
makes xiangqiboard.js flexible for handling a multitude of xiangqi-related problems.

Specifically, xiangqiboard.js does not understand anything about how the game of
xiangqi is played: how a knight moves, whose turn is it, is Red in check?, etc..

Fortunately, the powerful [xiangqi.js] library deals with exactly this sort of
problem domain and plays nicely with xiangqiboard.js's flexible API. Some examples
of xiangqiboard.js combined with xiangqi.js: [Example 5000], [Example 5001], [Example 5002].

Please see the powerful [xiangqi.js] library for an API to deal with these sorts
of questions.


This logic is distinct from the logic of the board. Please see the powerful
[xiangqi.js] library for this aspect of your application.



Here is a list of things that xiangqiboard.js is **not**:

- A xiangqi engine
- A legal move validator
- A PGN parser

xiangqiboard.js is designed to work well with any of those things, but the idea
behind xiangqiboard.js is that the logic that controls the board should be
independent of those other problems.

## Docs and Examples

- Docs - <https://lengyanyu258.github.io/xiangqiboardjs/docs>
- Examples - <https://lengyanyu258.github.io/xiangqiboardjs/examples>

## License

xiangqiboard.js is released under the terms of the [MIT License].

[jQuery]:https://jquery.com/
[xiangqiboardjs.com]:https://lengyanyu258.github.io/xiangqiboardjs/index.html
[xiangqi.js]:https://github.com/lengyanyu258/xiangqi.js
[Example 5000]:https://lengyanyu258.github.io/xiangqiboardjs/examples#5000
[Example 5001]:https://lengyanyu258.github.io/xiangqiboardjs/examples#5001
[Example 5002]:https://lengyanyu258.github.io/xiangqiboardjs/examples#5002
[MIT License]:LICENSE.md
npm package: @nmock/jest
Description: Jest compatible module mocking for node:test runner.
Author: Naoki Ikeguchi
Latest version: 0.1.1

# @nmock/jest

Jest compatible module mocking for node:test runner.

## Installation

```shell
npm add -D @nmock/jest
```

## Usage

Add `--import @nmock/jest/register` option to the Node.js command line.

```shell
node --test --import @nmock/jest/register './tests/**/*.test.ts'
```

If you are testing a TypeScript project, you can combine it with `--experimental-strip-types`.

```shell
node --test --experimental-strip-types --import @nmock/jest/register './tests/**/*.test.ts'
```

Or, you can use a 3rd-party hook to resolve modules, such as `@swc-node/register`.

```shell
node --test --import @swc-node/register/esm-register --import @nmock/jest/register './tests/**/*/.test.ts'
```

> [!WARNING]
> Make sure you import the 3rd-party hook **BEFORE** `@nmock/jest/register` as ESM customisation hooks are chained
> against the imported order.

## Advanced Usage

If you want to customise how to install the hook, you can use your own module with the programmatic API.

```ts
import { install } from "@nmock/jest";

install({
  globals: true, // Enable the global `jest` object
})
```

## Writing mocks

### Automatic mocking

Call `mock()` with only the module name to be mocked, then all exported functions will be mocked automatically.

```ts
import { mock } from "@nmock/jest";

mock("./your-module.js");
```

### Manual mocking

Call `mock()` with a factory function to define how to mock the module.

```ts
import { mock } from "@nmock/jest";

mock("./your-module.js", () => ({
  doSomething: () => {
    console.log("doSomething was called!");

    return "Hello, world!";
  },
}));
```

## Limitations

- As `mock()` calls will be executed outside the module, any other symbols cannot be referenced from the mock.
  - This behaviour is similar to [`vi.mock`](https://vitest.dev/api/vi.html#vi-mock).
- Some other APIs including `requireActual` are not implemented yet.
npm package: @nmorph/nmorph-ui-kit
Description: ## Overview
Latest version: 1.0.107

# Neumorphic UI Library for Vue 3

## Overview

This is a UI component library for Vue 3, designed using the neumorphism/skeuomorphism style. It offers a set of simple
components for creating unique user interfaces with a modern, 3D-like appearance.

### What is Neumorphism/Skeuomorphism?

Neumorphism is a design trend that blends elements of flat design and skeuomorphism. It creates an illusion of soft,
tactile interfaces with raised or inset effects, subtle gradients, and delicate shadows. This style aims to make UI
components feel tangible and visually engaging.

## Status: Testing

The library is currently in its **testing phase**. As the sole developer behind this project, I am working on improving
its stability, fixing bugs, and ensuring high-quality components.

If you encounter any issues, please don't hesitate to report them. Your feedback is highly appreciated and will help
enhance the library.

**Documentation:** For detailed instructions and examples, visit the
[official documentation site](https://nmorph.dev).

---

## Features

- **Neumorphic Design:** 3D-like components with soft shadows and smooth gradients.
- **Customizable Themes:** Easily modify the base color, text color, and accent color to match your application's
  design.
- **Lightweight and Intuitive:** Simple integration with Vue 3 using modern tools like Vite and Composition API.

---

## Requirements

- **Node.js:** Version 18.13.0 or higher is required to use this library.
- **Vue 3:** Ensure your project is set up with Vue 3 and Vite for best compatibility.

---

## Keywords

- Neumorphism
- Skeuomorphism
- Vue 3
- UI Components
- Neumorphic Design
- Customizable Themes
- Modern UI
- Lightweight Library
- Vite
- Composition API
npm package: @nmpilot/scssrs
Description: SCSS to CSS converter for browsers.
Latest version: 1.0.3

# Welcome to SCSSRS

Scary name, awesome module.

- This is a lightweight on-demand in-browser `scss` to `css` converter.
- __Scssrs__ uses `dart-sass` at its core, along with a `web-worker` mechanism to 
- Compile browser side `scss` `<script>` templates into `<style>` tags.

## Usage

```html
<script type="module" src="node_modules/@nmpilot/scssrs/index.js"></script>
```
> Import the module on your page.
```html
<script type="text/plain" data-scssrs>
    $color: blue;
    body {
        background-color: $color;
    }
</script>
```
> `data-scssrs` is a required attribute

The above `scss` code will be replaced by `css`:

```html
<style>
  body {
    background-color: blue; 
  }
</style>
```

<a href="https://www.buymeacoffee.com/newmediapilot" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>