open-index/open-npm huggingface dataset:
npm package: @lhlyu/create-app
Description: > 个人脚手架
Author: lhlyu
Latest version: 1.1.8

# create-app

> 个人脚手架

## 创建项目

> pnpm create @lhlyu/app

| 字段                         | 说明       | 示例                    |
|----------------------------|----------|-----------------------|
| PROJECT_NAME               | 项目名字     | vue-virtual-waterfall |
| PROJECT_DESC               | 项目描述     | vue虚拟瀑布流              |
| PROJECT_VERSION            | 版本号      | 1.0.0                 |
| PROJECT_AUTHOR             | 作者       | lhlyu                 |
| PROJECT_NAME_PASCAL_CASE   | 项目的大驼峰命名 | VueVirtualWaterfall   |
| COMPONENT_NAME             | 组件名字     | virtual-waterfall     |
| COMPONENT_NAME_PASCAL_CASE | 组件名字大驼峰  | VirtualWaterfall      |

#### 支持的模板

- vite-vue3-ts: 创建一个vue3项目
- vite-vue3-component: 开发一个vue3组件的项目

## 注意

- [npm publish 不会包含 .gitignore 文件](https://adoyle.me/Today-I-Learned/nodejs/missing-gitignore-when-node-publish.html)
npm package: @lhlyu/zipson
Description: A compact JSON-compatible serializer with compression and streaming support. 一个紧凑的 JSON 兼容序列化工具，支持压缩与流式处理。
Author: lhlyu
Latest version: 0.0.1

# zipson

[![npm](https://img.shields.io/npm/v/@lhlyu/zipson)](https://www.npmjs.com/package/@lhlyu/zipson)
![Last Commit](https://img.shields.io/github/last-commit/lhlyu/zipson)

Zipson 是 `JSON.parse` / `JSON.stringify` 的可替代方案，提供压缩与流式解析能力。

本仓库基于原作者 [@jgranstrom/zipson](https://github.com/jgranstrom/zipson) 的实现进行维护与改进。

## 安装

```bash
npm install @lhlyu/zipson
```

## 快速开始

```ts
import { stringify, parse } from '@lhlyu/zipson'

const data = { hello: 'world', list: [1, 2, 3] }
const encoded = stringify(data)
const decoded = parse(encoded)
```

## API

### `stringify(data, options?)`

将数据序列化为 zipson 字符串。

### `stringifyTo(data, writer, options?)`

将数据序列化到指定的 zipson 写入器。

```ts
import { stringifyTo, ZipsonStringWriter } from '@lhlyu/zipson'

const writer = new ZipsonStringWriter()
stringifyTo([1, 2, 3], writer)
const encoded = writer.value
```

### `parse(string)`

解析 zipson 字符串。

### `parseIncremental()`

分片增量解析 zipson 字符串。传入 `null` 表示结束并返回解析结果。

```ts
import { parseIncremental } from '@lhlyu/zipson'

const increment = parseIncremental()
increment(chunk1)
increment(chunk2)
const result = increment(null)
```

## 选项

| 选项                  | 类型    | 默认值  | 说明                                                      |
| --------------------- | ------- | ------- | --------------------------------------------------------- |
| `detectUtcTimestamps` | boolean | `false` | 检测 `2018-01-01T00:00:00Z` 这类 UTC 时间戳并按日期压缩。 |
| `fullPrecisionFloats` | boolean | `false` | 保留完整浮点精度，默认精度约为 `10^-3`。                  |

## 注意事项

- 不支持循环引用对象，请仅传入 JSON 安全的数据结构。
- 部分小数（例如 `822.26702880859375`）会出现精度损失。

## Writer

压缩输出统一通过写入器接口输出，便于扩展不同目标。自定义写入器需要实现：

```ts
abstract class ZipsonWriter {
    abstract write(data: string): void
    abstract end(): void
}
```

### 自定义写入器示例

```ts
import { ZipsonWriter, stringifyTo } from '@lhlyu/zipson'

class ArrayWriter extends ZipsonWriter {
    chunks: string[] = []
    write(data: string) {
        this.chunks.push(data)
    }
    end() {}
}

const writer = new ArrayWriter()
stringifyTo({ a: 1 }, writer)
const encoded = writer.chunks.join('')
```

## 输出与类型声明

本分支默认输出：

- ESM 包：`dist/index.mjs`
- CJS 包：`dist/index.cjs`
- 类型声明：`types/`（与 `src/` 目录结构一致）

## 构建

JS 包由 rolldown 生成，类型声明由 tsc 生成：

```bash
npm run build
```

## 版权与致谢

本项目基于 Jonas Granstrom 的 zipson 原始实现进行修改与改进。
原仓库地址：https://github.com/jgranstrom/zipson

## 许可证

MIT，详见 `LICENSE`。
npm package: @lhmson/mini-component-kit
Description: A modern React component library built with TypeScript, Tailwind CSS, and styled-components.
Author: leesown
Latest version: 0.1.0

# Mini Component Kit

A modern React component library built with TypeScript, Tailwind CSS, and styled-components.

## Features

- 🎨 Modern and customizable components
- 📦 Built with TypeScript for type safety
- 🎯 Tailwind CSS for utility-first styling
- 💅 Styled-components for dynamic styling
- 📚 Storybook for component documentation
- 🧪 Comprehensive testing setup
- 🐳 Docker support
- 🔄 CI/CD with GitHub Actions

## Installation

```bash
npm install mini-component-kit
# or
yarn add mini-component-kit
```

## Usage

```tsx
import { Button } from 'mini-component-kit';

function App() {
  return (
    <Button variant="primary">
      Click me
    </Button>
  );
}
```

## Development

1. Clone the repository
2. Install dependencies:
   ```bash
   npm install
   # or
   yarn install
   ```
3. Start the development server:
   ```bash
   npm run dev
   # or
   yarn dev
   ```
4. Start Storybook:
   ```bash
   npm run storybook
   # or
   yarn storybook
   ```

## Pattern to create new components

1. Create a new directory in src/components
2. Create the component file (e.g., ComponentName.tsx)
3. Create an index file for exports
4. Create a Storybook story file
5. Create a test file
6. Export the component in src/index.ts

## Testing

```bash
npm run test
# or
yarn test
```

## Building

```bash
npm run build
# or
yarn build
```

## Contributing

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add some amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request

## License

This project is licensed under the MIT License - see the LICENSE file for details.