open-index/open-npm huggingface dataset:
npm package: @kuriyota/table-json
Description: 一个轻量级库，用于在对象数组和表格优化的 JSON 格式之间进行转换。
Latest version: 0.1.1

# TableJSON

一个轻量级库，用于在对象数组和表格优化的 JSON 格式之间进行转换。

[![npm 版本](https://img.shields.io/npm/v/@kuriyota/table-json)](https://www.npmjs.com/package/@kuriyota/table-json)
[![许可证](https://img.shields.io/npm/l/@kuriyota/table-json)](LICENSE)

## 功能特点

- **高效序列化**：将对象数组转换为表格优化的 JSON 格式
- **自动检测**：自动识别适合表格转换的数组结构
- **可定制转换**：提供强制转换或深度控制的选项
- **轻量级**：无外部依赖
- **TypeScript 支持**：包含类型定义

## 安装

```bash
npm install @kuriyota/table-json
```

## 使用方法

### 基本用法

```javascript
import { parse, stringify } from 'tablejson';

const data = [
  { id: 1, name: 'Alice', age: 30 },
  { id: 2, name: 'Bob', age: 25 }
  // ... 数百个类似对象
];

// 转换为表格优化的 JSON
const json = stringify(data);

// 转换回原始对象
const originalData = parse(json);
```

### API 接口

#### `stringify(data: any, options?: StringifyOptions, replacer?, space?): string`

将 JavaScript 值转换为表格优化的 JSON 字符串。

**选项：**

- `tableConversion`: `'auto' | 'force' | number` （默认：`'auto'`)
  - `'auto'`: 自动在有益时转换数组（相当于 `10`）
  - `'force'`: 强制转换所有对象数组
  - `number`: 当数组长度达到此值时，将进行转换
- `maxDepth`: 最大递归深度 （默认：`Infinity`)

#### `parse(input: string): any`

将表格优化的 JSON 解析回 JavaScript 对象。

#### `isTableFormat(obj: any): boolean`

类型守卫，检查对象是否为 TableJSON 格式。

### 高级用法

```javascript
import { stringify } from 'tablejson';

const largeDataSet = [...]; // 包含数千个相似对象的数组

// 强制进行表格转换，不考虑大小
const json1 = stringify(largeDataSet, { tableConversion: 'force' });

// 自定义转换阈值（转换长度超过 5 项的数组）
const json2 = stringify(largeDataSet, { tableConversion: 5 });

// 限制递归深度
const json3 = stringify(complexData, { maxDepth: 3 });
```

## TableJSON 格式

优化后的格式如下所示：

```json
{
  "@table": "1.0.0",
  "columns": ["id", "name", "age"],
  "rows": [
    [1, "Alice", 30],
    [2, "Bob", 25]
  ]
}
```

而非传统格式：

```json
[
  { "id": 1, "name": "Alice", "age": 30 },
  { "id": 2, "name": "Bob", "age": 25 }
]
```

## 性能优势

表格格式在以下情况下提供显著优势：

- 处理大量相似对象的数组时
- JSON 需要通过网络传输时
- 存储空间受限时
npm package: @kurizu/customjs
Description: Customjs is a simple npm package that allows you to customize certain JavaScript functions.
Author: Kurizu
Latest version: 1.0.4

# CustomJS

CustomJS is a simple npm package that allows you to customize JavaScript functions with additional features, such as logging with customizable colors.

## Installation

You can install CustomJS using npm:

```bash
npm install @kurizu/customjs
```

# Functions
1 - SetLog

The SetLog function allows you to customize logging behavior by assigning a logging function to a specified variable name. It also supports customizing the log level and color.

First, import the package and initialize it by calling the setlog function and passing a variable name and log level. This will assign the customized logging function to the specified variable:

```javascript
const custom = require('@kurizu/customjs');
custom.setlog('log', 'info');
```

Now you can use the assigned variable to `log` messages to the console with the specified log level:

```javascript
log('Hello World!');
```

You can have multiple instances of `setlog` running at the same time by calling the `setlog` function with different variable names:

```javascript
const custom = require('@kurizu/customjs');
custom.setlog('log', 'info');
custom.setlog('log2', 'warning');
```

You can also use the assigned variables to log messages to the console:

```javascript
log('Hello World!'); // Logs an info message in cyan color: Hello World!
log2('Hello World! 2'); // Logs a warning message in yellow color: Hello World 2!
```

2 - Calculate 
The calculate function basically lets you do operations strings.
    
```javascript   
const custom = require('@kurizu/customjs');
custom.calculate([1, '2'], '-')
```

The available operations are:
- `+` for addition
- `-` for subtraction
- `*` for multiplication
- `/` for division
- `%` for modulus
- `**` for exponentiation

You cause even use it with the `setlog` function to log the result of the calculation:

```javascript
const custom = require('@kurizu/customjs');
custom.setlog('log', 'info');
log(custom.calculate([1, '2', 3], '*')); // Logs an info message in cyan color: 6
```

And can pass the amount of numbers you want as array:

```javascript
const custom = require('@kurizu/customjs');
custom.setlog('log', 'info');
log(custom.calculate([1, '2', 3, "4", 5], '*')); // Logs an info message in cyan color: 120
```

## Available Log Levels and Colors

CustomJS supports the following log levels and their corresponding colors:

1. none: No color formatting applied
2. info: Cyan color
3. warning: Yellow color
4. error: Red color

You can customize the log level when calling setlog by providing the desired log level as the second argument. If an invalid log level is provided, an error message will be displayed.

# Features

CustomJS aims to provide customizable JavaScript functions for various purposes. In the future, I plan to add more features and functionalities to this package. If you have any suggestions, feel free to open an issue on the GitHub repository.

# License

This project is licensed under the MIT License. See the LICENSE file for more details.
npm package: @kurkle/color
Description: css color parsing, manupulation and conversion
Author: Jukka Kurkela
Latest version: 0.4.0

# @kurkle/color

[![npm](https://img.shields.io/npm/v/@kurkle/color?style=plastic)](https://www.npmjs.com/package/@kurkle/color) [![release](https://img.shields.io/github/release/kurkle/color.svg?style=plastic)](https://github.com/kurkle/color/releases/latest) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/@kurkle/color?style=plastic)](https://www.npmjs.com/package/@kurkle/color) [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/kurkle/color/ci.yml?style=plastic)](https://github.com/kurkle/color) [![GitHub](https://img.shields.io/github/license/kurkle/color?style=plastic)](https://github.com/kurkle/color/blob/main/LICENSE.md)

## Overview

Fast and small CSS color parsing and manipulation library.

## Parsing

Supported formats:

- named

```text
blue
transparent
```

- hex

```text
#aaa
#bbba
#1A2b3c
#f1f2f388
```

- rgb(a)

```text
rgb(255, 255, 255)
rgb(255, 0, 0, 0.5)
rgb(50%, 50%, 50%, 50%)
rgb(0 0 100% / 80%)
rgba(200, 20, 233, 0.2)
rgba(200, 20, 233, 2e-1)
```

- hsl(a)

```text
hsl(240deg, 100%, 50.5%)
hsl(0deg 100% 50%)
hsla(12, 10%, 50%, .3)
hsla(-1.2, 10.2%, 50.9%, 0.4)
```

- hwb

```text
hwb(240, 100%, 50.5%)
hwb(244, 100%, 100%, 0.6)
```

- hsv

```text
hsv(240, 100%, 50.5%)
hsv(244, 100%, 100%, 0.6)
```

## Docs

[typedocs](https://kurkle.github.io/color/)

**note** The docs are for the ESM module. UMD module only exports the [default export](https://kurkle.github.io/color/modules.html#default)

## Benchmarks

[benchmarks](https://kurkle.github.io/color/dev/bench/)

## Size visualization

[color.min.js](https://kurkle.github.io/color/stats.html)

## License

`@kurkle/color` is available under the [MIT license](https://github.com/kurkle/color/blob/main/LICENSE.md).
npm package: @kurkle/fastwildcard
Description: Simple wildcard matching library
Latest version: 1.0.0

# @kurkle / fastwildcard

A wildcard matching library converted from [FastWildcard C# library](https://github.com/fastwildcard/fastwildcard) to ES6 module.

* _*Robust:*_ extensively unit tested to be reliable and predictable - no edge cases!
* _*Fast:*_ developed with regular benchmarking and performance analysis to provide the best speed possible!

## Pattern syntax

* '*' matches 0 or more characters
* '?' matches 1 character