open-index/open-npm huggingface dataset:
npm package: @ks-web/area-data
Description: Ks 省市区数据
Author: chenjiahan
Latest version: 0.0.2

# Vant China Area Data

中国省市区数据，适用于 Vant 的 Area 和 Cascader 等组件。

## 安装

```shell
# 通过 npm
npm i @ks-web/area-data

# 通过 yarn
yarn add @ks-web/area-data

# 通过 pnpm
pnpm add @ks-web/area-data
```

## 使用

在 Vant 的 Area 组件中使用时，直接引用 `areaList` 对象即可：

```ts
import { areaList } from '@ks-web/area-data';
```

在 Vant 的 Cascader 组件中使用时，请使用 `useCascaderAreaData` 方法：

```ts
import { useCascaderAreaData } from '@ks-web/area-data';

const cascaderAreaData = useCascaderAreaData();
```

## 数据更新

中国的行政区划每年都会有变动，如果发现省市区数据未及时更新，欢迎提 Pull Request 帮助我们更新。你可以在[「国家统计局 - 全国区划代码」](http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/) 和[「民政部 - 行政区划代码」](https://www.mca.gov.cn/article/sj/xzqh/1980/)上查询到最新数据，请根据官方数据进行核实。
npm package: @ks-web/cli
Description: Vant CLI is a tool for building vue component library. You can quickly build a full-featured Vue component library with vant-cli.
Author: chenjiahan
Latest version: 0.0.6

# Vant CLI

Vant CLI is a tool for building vue component library. You can quickly build a full-featured Vue component library with vant-cli.

🇨🇳 <a href="./README.zh-CN.md">查看中文版介绍</a>

---

### Features

- Provides rich commands covering the complete process from development to deploy
- Based on conventional directory structure. Generate elegant document website and component examples automatically.
- ESlint built-in.
- Support Tree Shaking/Theme Customization/Import on Demand

### Quickstart

To create a Vant CLI project, run:

```bash
yarn create vant-cli-app
```

### Install Manually

```shell
# via npm
npm i @ks-web/cli -D

# via yarn
yarn add @ks-web/cli -D

# via pnpm
pnpm add @ks-web/cli -D
```

Please add the followed config to `package.json` file.

```json
{
  "scripts": {
    "dev": "vant-cli dev",
    "test": "vant-cli test",
    "lint": "vant-cli lint",
    "build": "vant-cli build",
    "prepare": "husky install",
    "release": "vant-cli release",
    "build-site": "vant-cli build-site"
  },
  "nano-staged": {
    "*.md": "prettier --write",
    "*.{ts,tsx,js,vue,less,scss}": "prettier --write",
    "*.{ts,tsx,js,vue}": "eslint --fix"
  },
  "eslintConfig": {
    "root": true,
    "extends": ["@vant"]
  },
  "prettier": {
    "singleQuote": true
  },
  "browserslist": ["Chrome >= 51", "iOS >= 10"]
}
```

## More Details

- [cli](https://github.com/vant-ui/vant/tree/main/packages/vant-cli/docs/commands.md)
- [config](https://github.com/vant-ui/vant/tree/main/packages/vant-cli/docs/config.md)
- [directory structure](https://github.com/vant-ui/vant/tree/main/packages/vant-cli/docs/directory.md)
- [CHANGELOG](https://github.com/vant-ui/vant/tree/main/packages/vant-cli/changelog.md)
npm package: @ks-web/compat
Description: Provide Vant 3 compatible behavior for Vant 4
Author: chenjiahan
Latest version: 0.0.2

# @ks-web/compat

This package provides Vant 3 compatible behavior for Vant 4 users.

## Install

```shell
# with npm
npm i @ks-web/compat

# with yarn
yarn add @ks-web/compat

# with pnpm
pnpm add @ks-web/compat
```

## Usage

```js
// Same as Toast in Vant 3
import { Toast } from '@ks-web/compat';

// Same as Dialog in Vant 3
import { Dialog } from '@ks-web/compat';

// Same as Notify in Vant 3
import { Notify } from '@ks-web/compat';

// Same as ImagePreview in Vant 3
import { ImagePreview } from '@ks-web/compat';
```
npm package: @ks-web/eslint-config
Description: eslint config of vant
Author: chenjiahan
Latest version: 0.0.3

# ESLint Config of Vant

## Install

```shell
# with npm
npm i @ks-web/eslint-config -D

# with yarn
yarn add @ks-web/eslint-config -D

# with pnpm
pnpm add @ks-web/eslint-config -D
```

## Usage

```json
{
  "extends": ["@vant"]
}
```
npm package: @ks-web/icons
Description: ks icons
Author: chenjiahan
Latest version: 0.0.2

# Ks Icons

## Install

```shell
# with npm
npm i @ks-web/icons

# with yarn
yarn add @ks-web/icons

# with pnpm
pnpm add @ks-web/icons
```

## Document

- [Usage in Vue](https://vant-ui.github.io/vant/#/zh-CN/icon)
- [Usage in Weapp](https://vant-ui.github.io/vant-weapp/#/icon)
npm package: @ks-web/popperjs
Description: Pre-compiled popperjs core
Author: chenjiahan
Latest version: 0.0.3

# @ks-web/popperjs

@popperjs/core in commonjs format, added Object.assign polyfill.

## Install

```shell
# with npm
npm i @ks-web/popperjs

# with yarn
yarn add @ks-web/popperjs

# with pnpm
pnpm add @ks-web/popperjs
```

## Usage

see: https://popper.js.org/

## Refer

issue: https://github.com/vant-ui/vant/issues/7626
npm package: @ks-web/touch-emulator
Description: Vant touch emulator
Author: chenjiahan
Latest version: 0.0.1

# Vant Touch Emulator

在桌面端上模拟移动端 touch 事件，实现方式来自于 [hammerjs/touchemulator](https://github.com/hammerjs/touchemulator).

## Install

```shell
# with npm
npm i @vant/touch-emulator

# with yarn
yarn add @vant/touch-emulator

# with pnpm
pnpm add @vant/touch-emulator
```

## 使用指南

直接在代码中引入模块即可，模块会自动完成初始化并生效

```js
import '@vant/touch-emulator';
```

## CDN 引入

```html
<script src="https://fastly.jsdelivr.net/npm/@vant/touch-emulator"></script>
```

## 禁用 touch 模拟

在标签上添加 `data-no-touch-simulate` 属性后，可以使这个标签（以及它的子元素）不触发 `touch` 模拟事件。

```html
<div data-no-touch-simulate />
```
npm package: @ks-web/unplugin-vue-components
Description: ks Composition API
Author: chenjiahan
Latest version: 0.0.2

# Vant Use

Built-in composition APIs of Vant.

## Install

```shell
# with npm
npm i @ks-web/use

# with yarn
yarn add @ks-web/use

# with pnpm
pnpm add @ks-web/use
```
npm package: @ks-web/use
Description: Vant Composition API
Author: chenjiahan
Latest version: 0.2.0

# Ks Use

Built-in composition APIs of ks.

## Install

```shell
# with npm
npm i @ks-web/use

# with yarn
yarn add @ks-web/use

# with pnpm
pnpm add @ks-web/use
```
npm package: @ks89/ngx-codemirror
Description: Angular Codemirror component
Author: Stefano Cappa
Latest version: 6.0.0
Deprecated: This project is deprecated, please use the new library called 'ngx-codemirror6' based on codemirror6

# @ks89/ngx-codemirror

**Fork of the official [ng2-codemirror](https://github.com/chymz/ng2-codemirror) library with angular-universal / Server side rendering support.**

<br>

**Tested only with Angular 15.x.x and angular-cli 15.x.x**


## Installation

`npm i --save @ks89/ngx-codemirror@latest codemirror`

## Configuration

1. Install `npm i --save-dev @types/node`
2. Modify your tsconfig.app.json adding this:

    ```
    "compilerOptions": {
        "types": [
              "node"
        ]
    }
    ```

3. Add this in your main tsconfig.json (if already not available):

    ```
    "compilerOptions": {
        "typeRoots": [
            "node_modules/@types"
        ]
    }
    ```

4. Import language in main.ts

    ```
    import 'codemirror/mode/htmlmixed/htmlmixed';
    import 'codemirror/mode/javascript/javascript';
    ```

5. Add `"node_modules/codemirror/lib/codemirror.js"` in all scripts arrays of your angular.json file
    
    ```
    ...
    "architect": {
        "build": {
            "builder": "@angular-devkit/build-angular:browser",
            "options": {
                ...
                "scripts": [
                  "node_modules/codemirror/lib/codemirror.js"
                ],
                ...
            }
        }
    },
    ...
    "test": {
        ...
        "scripts": [
          "node_modules/codemirror/lib/codemirror.js"
        ],
        ...
    }
    
    ```

<br><br>

## Contributions

To build this project run `npm run build:lib && npm start` in the root folder.


## License

The MIT License (MIT)

Copyright (c) 2018-2022 Stefano Cappa (Ks89)
Copyright (c) 2016 Simon Babay

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.