open-index/open-npm huggingface dataset:
npm package: @kuaiyou/print-utils
Description: Kuaiyou print utils
Author: tengzack
Latest version: 0.0.6

# print-utils

Kuaiyou print utils

## Install

```bash
npm i @kuaiyou/print-utils
yarn add @kuaiyou/print-utils
```

## Usage

```js
  import { printPdf, getMergedPDFURL,  } from '@kuaiyou/print-utils';
  const pdf = 'base64' || 'ArrayBuffer';
  const pdfs = ['base64', 'ArrayBuffer'];
  const pdfFile = getMergedPDFURL(pdfs);
  printPdf(pdf or pdfs);
```
npm package: @kuaizi/i18n-cli
Description: 利用接口完成翻译，生成对应 Excel 文件
Author: tomieric
Latest version: 1.1.0

# @kuaizi/i18n-cli

利用接口完成翻译，生成对应 Excel 文件

```
entry(zh-CN.js) => i18n.xsls => zh-CN.js,en-US.js,GB.js
```
npm package: @kuaizi/rollup-plugin-javascript-obfuscator
Description: Plugin for Rollup to obfuscate JS code
Author: Wain-PC
Latest version: 1.0.5

rollup-plugin-javascript-obfuscator
==========================
[![Build Status](https://travis-ci.org/Wain-PC/rollup-plugin-javascript-obfuscator.svg?branch=master)](https://travis-ci.org/Wain-PC/rollup-plugin-javascript-obfuscator)
[![Coverage Status](https://coveralls.io/repos/github/Wain-PC/rollup-plugin-javascript-obfuscator/badge.svg?branch=master)](https://coveralls.io/github/Wain-PC/rollup-plugin-javascript-obfuscator?branch=master)

Rollup plugin for [javascript-obfuscator](https://github.com/javascript-obfuscator/javascript-obfuscator).
## Installation

Install the package:

- npm `npm install --save-dev rollup-plugin-javascript-obfuscator`
- yarn `yarn add --dev rollup-plugin-javascript-obfuscator`

## Usage

[Pass any options available in the obfuscator](https://github.com/javascript-obfuscator/javascript-obfuscator#javascript-obfuscator-options).

```javascript
import { rollup } from 'rollup'
import obfuscatorPlugin from 'rollup-plugin-javascript-obfuscator'

	rollup({
		entry: 'main.js',
		plugins: [
			//Pass options here (optional)
			obfuscatorPlugin({
			  compact: true
			})
		]
	})
```

## Source Maps
Inline source map configuration:
```
{
	sourceMap: true,
	sourceMapMode: 'inline'
}
```
Separate source map configuration:
```
{
	sourceMap: true
}
```
npm package: @kuaizi/video-snapshot
Description: Get snapshots from a video file in the browser
Author: tomieric
Latest version: 1.0.4

<div align="center">
  <img src="video-snapshot.gif" alt="Logo" height="400">
  <br><br>
</div>

# video-snapshot
> Get snapshots from a video file in the browser

EN | [中文文档](./README_ZH.md)

# Demo 💅
[https://zzarcon.github.io/video-snapshot](https://zzarcon.github.io/video-snapshot)

# Install 🚀

```
$ yarn add @kuaizi/video-snapshot
```

# Usage ⛏

```javascript
import VideoSnapshot from 'video-snapshot';

document.querySelector('input[type="file"]').addEventListener('change', onChange);

const onChange = async (e) => {
  const snapshoter = new VideoSnapshot(e.target.files[0]);
  // Support URL
  // const snapshoter = new VideoSnapshot('http://myserver.com/demo.mp4');
  const previewSrc = await snapshoter.takeSnapshot();
  // Support custom your snapshot size
  // const previewSrc = await snapshoter.takeSnapshot(0, 200, 300);
  const img = document.createElement('img');

  img.src = previewSrc;

  document.body.appendChild(img);
};
```

# Api 👀

```typescript
type CustomVideoTime = 'start' | 'middle' | 'end';
type VideoTime = number | CustomVideoTime;

class VideoSnapshot {
  constructor(blob: Blob | String) {};
  takeSnapshot(time?: VideoTime, width?: Number, height?: Number): Promise<string>;
  end(): void;
}
```

# Features 💸

* Dependency free
* [2kb size](https://bundlephobia.com/result?p=video-snapshot@1.0.1)
* Take snapshot at any time
* You can pass **smart times** to easily get better previews
  
# Development

## Install

```
yarn install --ignore-engines
```

# Author 🦄

[@zzarcon](https://twitter.com/zzarcon)

**Updated by**
[@tommyshao](https://github.com/tomieric)
npm package: @kuaizi/vue-cli-plugin-i18n
Description: * [i18n-placeholder-loader](https://github.com/veici/i18n-placeholder-loader) * [@kuaizi/vue-i18n-loader](../vue-i18n-loader/README.md) * [@kuaizi/webpack-plugin-vue-i18n](../webpack-plugin-vue-i18n/README.md)
Author: tomieric
Latest version: 1.1.1

# @kuaizi/vue-cli-plugin-i18n

### 依赖

* [i18n-placeholder-loader](https://github.com/veici/i18n-placeholder-loader)
* [@kuaizi/vue-i18n-loader](../vue-i18n-loader/README.md)
* [@kuaizi/webpack-plugin-vue-i18n](../webpack-plugin-vue-i18n/README.md)

## 使用

```bash
> vue add @kuaizi/vue-cli-plugin-i18n
> 使用 @kuaizi/webpack-plugin-vue-i18n吗?(Y)
> √ @kuaizi/vue-i18n-loader
    i18n-placeholder-loader
# 执行生成中文键值对照文件
> yarn i18n
```

## 配置启用插件

### package.json

```js
{
  "vue-cli-i18n": {
    // 开启 @kuaizi/webpack-plugin-vue-i18n
    "webpack": true,
    // 配置使用loader支持，['@kuaizi/vue-i18n-loader', 'i18n-placeholder-loader']
    "loader": "i18n-placeholder-loader"
  }
}
```

## 插件参数配置

### vue.config.js

```
module.exports = {
  pluginOptions: {
    "vue-i18n": {
      output: "./src/i18n/newZH.js"
    }
  }
}
```
npm package: @kuaizi/vue-cli-plugin-register-component
Description: Vue component register
Author: tommyshao
Latest version: 1.0.1

#  vue-cli-plugin-register-component

> 参照`@vuepress/plugin-register-component`

全局组件自动注册

## 安装

```
> yarn add @kuaizi/vue-cli-plugin-register-component
# 或者
> npm i @kuaizi/vue-cli-plugin-register-component -D
```

## 目录结构

```
src
  - components
    - componentA
    - componentB
  - pages
    - index
      - components
        _common
          header.vue
          footer.vue
        layout.vue
        _page.vue
```

默认自动注册 `components` 目录所有组件, 其中不会注册 `_`开头的文件或者文件夹

```
# src/pages/index/components/index.js
import Vue from 'vue'
Vue.component('layout', () => import('./layout.vue'))
```

## 使用

```
# src/app.js
import 'src/components'

new Vue()
```

### 多页面

共用
```
# src/app.js
import './components'

new Vue()
```

单页
```
# src/pages/index/main.js
import './components'
// ...
```

## vue-register-component-webpack-plugin

vue组件自动注册

## 安装

```
> npm i stall @kuaizi/vue-cli-plugin-register-component
```

## 使用

```
# webpack.config.js
const vueRegisterComponentWebpackPlugin = require('@kuaizi/vue-cli-plugin-register-component')

export default {
  plugins: [
    new vueRegisterComponentWebpackPlugin({
      componentDir: ['./src/components', './src/entries/index/components'],
      // 全局额外组件
      components: [
        { name: 'element', path: './src/additional/element.vue' }
      ]
    })
  ]
}
```

在入口文件导入自动生成的组件注册文件

```
-src
  - main.js
  - components
    - index.js // 自动生成
```

在 `main.js` 中导入 `components/index.js`

```
# main.js
import './components'
```
npm package: @kuaizi/vue-i18n-loader
Description: i18n-loader
Author: tomieric
Latest version: 1.1.1

# @kuaizi/i18n-loader

多语言loader


## vue-cli3.x

```js
module.exports = {
  chainWebpack: config => {
    // i18n
    config.module
      .rule('i18n')
      .test(/\.vue$/)
      .use('@kuaizi/vue-i18n-loader')
        .loader('@kuaizi/vue-i18n-loader')
        .end()
  }
}
```

## webpack

```js
module.exports = {
  module: {
    rules: [
      {
        test: /\.vue$/,
        loader: '@kuaizi/vue-i18n-loader'
      }
    ]
  }
}
```

## demo

`demo.vue`

```html
<template>
  <a title="::英文::"></a>
<template>

<script>
  export default {
    props: {
      title: {
        type: String,
        default () {
          return '::标题::'
        }
      }
    },

    data () {
      return {
        remark: '::备注::'
      }
    },

    computed () {
      test () {
        return '::测试{ok}::{ok: this.remark}'
      }
    }
  }
</script>
```

## Test

```
yarn test i18n-loader
```
npm package: @kuaizi/webpack-plugin-vue-i18n
Description: > 不支持 $t(item.title)，item.title会被压缩 e.title
Author: tomieric
Latest version: 1.1.1

# @kuaizi/webpack-plugin-vue-i18n

> 不支持 $t(item.title)，item.title会被压缩 e.title

## 用法

```js
const resolve = require('path').resolve
const webpackPluginVueI18n = require('@kuaizi/webpack-plugin-vue-i18n')

module.exports = {
  entry: resolve(__dirname, 'test.js'),
  plugins: [
    new webpackPluginVueI18n({
      // 默认为'./src/i18n/zh-CN.js'
      output: './src/i18n/zh-CN.js'
    })
  ]
}
```

对于已存在 `./src/i18n/zh-CN.js` 文件需加注释标识 `/* i18n */`，方便插件做内容替换

```js
export default Object.assign(/* i18n */ {
  '测试': '测试'
}/* i18n end */, zh, zhElement)
```


## 测试

### 输入文件
```js
module.exports = `
  {{ $t('测试') }}
  <a :title="$t('标题22')">标题22</a>
  <script>
    export default {
      props: {
        data: {
          type: Array,
          default () {
            return this.$t('属性')
          }
        }
      },

      data () {
        return {
          value: this.$t('搜索')
        }
      },

      computed: {
        text () {
          return this.$t('文字')
        }
      }
    }
  </script>
`
```

### 输出文件

* `./src/i18n/zh-CN.js`

```js
export default /* i18n */{
  "测试": "测试",
  "标题22": "标题22",
  "属性": "属性",
  "搜索": "搜索",
  "文字": "文字"
}/* i8n end */
```

### 命令

```bash
# set NODE_ENV=production&& yarn test webpack-plugin-vue-i18n --debug
> cd __test__/webpack
> set NODE_ENV=production&& node index --i18n
```
npm package: @kuake/tiny-inflate
Description: A tiny inflate implementation (Modern ESM/TS version)
Author: quarkcao
Latest version: 2.0.1

# @kuake/tiny-inflate

This project is a modernized, TypeScript-first fork of the excellent [tiny-inflate](https://github.com/devongovett/tiny-inflate) library originally created by **Devon Govett**.

## Background

The core logic is based on Joergen Ibsen's [tiny inflate](https://bitbucket.org/jibsen/tinf) C library, which was ported to JavaScript by Devon Govett. 

As the original JavaScript repository is no longer actively maintained, this fork was created to provide:
- **TypeScript Support**: Full type definitions for better DX.
- **ES Modules**: Modern ESM-first exports for build tools like Vite, Bun, and Webpack 5.
- **Modern Tooling**: Powered by [Bun](https://bun.sh) for ultra-fast testing and building.

## Features

- **Tiny**: ~3KB minified.
- **Modern**: Written in TypeScript with ESM support.
- **Fast**: Optimized for Bun and modern JS engines.
- **Zero Dependencies**: Core logic has no external dependencies.
- **Maintenance**: This fork is maintained for modern development environments.

## Installation

```bash
bun add @kuake/tiny-inflate
# or
npm install @kuake/tiny-inflate
```

## Example

To use tiny-inflate, you need two things: a buffer of data compressed with deflate, and the decompressed size (often stored in a file header) to allocate your output buffer. Input and output buffers can be `Uint8Array` or Node.js `Buffer`.

```typescript
import inflate from '@kuake/tiny-inflate';

const compressed = new Uint8Array([ ... ]);
const decompressedSize = 1024;
const output = new Uint8Array(decompressedSize);

const result = inflate(compressed, output);
// result is a subarray of output with the actual decompressed length
```

## Development

This project uses [Bun](https://bun.sh) for development, testing, and building.

```bash
# Install dependencies
bun install

# Run tests
bun test

# Build for production
bun run build
```

## Credits

This library originates from the dedicated work of:
- **[Joergen Ibsen](https://github.com/jibsen)**: Author of the original [tinf](https://bitbucket.org/jibsen/tinf) C library.
- **[Devon Govett](https://github.com/devongovett)**: Author of the original [tiny-inflate](https://github.com/devongovett/tiny-inflate) JavaScript port.

We thank them for their contributions to the open-source community.

## License

MIT
npm package: @kuangmo/vue-pdf-mobile
Description: 基于 vue-pdf 的移动端二次封装
Author: ParkerFiend
Latest version: 0.0.2

# vue-pdf-mobile

基于 vue-pdf 的二次封装

集成了基础的双指缩放功能

## props 入参

|   字段    |   字段名称   |   类型   | 是否必传 | 默认值 |   描述   |
| :-------: | :----------: | :------: | :------: | :----: | :------: |
|    url    |   pdf 链接   | `string` |    是    |   无   |          |
| scaleRate | 双指缩放速度 | `number` |    否    |  100   | 越大越慢 |