open-index/open-npm huggingface dataset:
npm package: @pengchengpt/npm-package-demo
Description: A utility package with common helper functions
Author: PTC
Latest version: 1.1.0

# @pengcheng1596/utils

A collection of useful JavaScript utility functions.

## Installation

```bash
npm install @pengcheng1596/utils
```

## Usage

```typescript
import { sleep, isEmpty, random } from '@pengcheng1596/utils';

// 延迟执行
await sleep(1000); // 延迟1秒

// 检查空值
isEmpty(null); // true
isEmpty([]); // true
isEmpty({ }); // true
isEmpty(''); // true
isEmpty('hello'); // false

// 生成随机数
random(1, 10); // 返回1到10之间的随机整数
```

## API

### sleep(ms: number): Promise<void>
延迟指定的毫秒数。

### isEmpty(value: any): boolean
检查一个值是否为空（null, undefined, 空字符串, 空数组, 空对象）。

### random(min: number, max: number): number
生成指定范围内的随机数。

## License

MIT
npm package: @pengfuxiao1992/ka-tools
Description: tools for ant design
Author: yiminghe@gmail.com
Latest version: 0.0.1

# @ant-design/tools 🔧🔧🔧

[![npm package](https://img.shields.io/npm/v/@ant-design/tools.svg?style=flat-square)](https://www.npmjs.org/package/@ant-design/tools)
[![NPM downloads](http://img.shields.io/npm/dm/@ant-design/tools.svg?style=flat-square)](http://npmjs.com/@ant-design/tools)
[![Travis](https://img.shields.io/travis/ant-design/antd-tools/master.svg?style=flat-square)](https://travis-ci.org/ant-design/antd-tools)
[![Dependency Status](https://david-dm.org/ant-design/antd-tools.svg?style=flat-square)](https://david-dm.org/ant-design/antd-tools)
[![devDependencies Status](https://david-dm.org/ant-design/antd-tools/dev-status.svg)](https://david-dm.org/ant-design/antd-tools?type=dev)

Tools for Ant Design of React: https://github.com/ant-design/ant-design

```bash
antd-tools run dist
antd-tools run compile
antd-tools run clean
antd-tools run pub
antd-tools run guard
antd-tools run ts-lint
antd-tools run ts-lint-fix
antd-tools run deps-lint
antd-tools run sort-api-table
antd-tools run api-collection
```
npm package: @pengfuxiao1992/tuya-ka-tools
Description: @ant-design/pro-descriptions
Latest version: 2.3.0

# @ant-design/pro-descriptions

> Advanced description list component, providing a more convenient and faster solution to build description lists.

See our website [@ant-design/pro-descriptions](https://procomponent.ant.design/) for more information.

ProDescriptions was created to solve the problem of having to write a lot of sample code for Descriptions in a project, so it encapsulates a lot of common logic in it. Writing a Descriptions in React inevitably requires defining some of the same properties. So ProDescriptions by default encapsulates the logic of requesting network, columns display.

For example, if ProDescriptions encapsulates the behavior of the request network, ProDescriptions will bring the data in props.params into the request by default, and if the interface happens to be the same as our definition, it will be very easy to implement a query.

```tsx | pure
import request from 'umi-request';

const fetchData = (params) =>
  request<{
    data: T{};
  }>('https://proapi.azurewebsites.net/github/issues', {
    params,
  });

const keyWords = "Ant Design"

<ProDescriptions<T,U> request={fetchData} />;
```

We agree that request has one parameter and `params` will take its own `params` in props. The type is as follows:

```tsx | pure
(params: U) => RequestData;
```

There are also conventions for ProDescriptions with the results of the request back, of the following type.

```tsx | pure
interface RequestData {
  data: Datum{};
  success: boolean;
}
```

## Install

Using npm:

```bash
$ npm install --save  @ant-design/pro-descriptions
```

or using yarn:

```bash
$ yarn add @ant-design/pro-descriptions
```