open-index/open-npm huggingface dataset:
npm package: @sunnyfan/my-utils
Description: This is a toolkit for common methods
Author: sunnyfan
Latest version: 0.0.5

# My Utils

`my-utils` 是一个包含常用工具方法和验证方法的 JavaScript 库。它包含了两个主要模块：

- **$tools**：提供了常用的工具方法（如去重、姓名脱敏、证件号脱敏等）。
- **$validate**：提供了常见的数据校验方法（如身份证、姓名、电话、邮箱等验证）。

## 安装

你可以通过 npm 安装 `my-utils`：

```bash
npm i @sunnyfan/my-utils
```

## 使用
1. **工具方法($tools)**
* 导入方式 支持 import 和 require
```
// 使用 import 导入
import { $tools } from 'my-utils';
// 或者使用 require 导入
const { $tools } = require('my-utils');

```
* 提供的方法
-- 
```
const arr = [1, 2, 2, 3];
const result = $tools.unique(arr);
console.log(result); // [1, 2, 3]

const name = '张三';
const maskedName = $tools.maskName(name);
console.log(maskedName); // 张*

...
```

2. **验证方法($validate)**：
* 导入方式 支持 import 和 require
```
// 使用 import 导入
import { $validate } from 'my-utils';
// 或者使用 require 导入
const { $validate } = require('my-utils');

```
* 提供的方法
-- 
```
const name = '张三';
const isValid = validate.validateName(name);
console.log(isValid); // true

const phone = '13800138000';
const isValid = validate.validatePhone(phone);
console.log(isValid); // true

...
```

## 所有方法
1. **工具方法($tools)**：
   - `unique(arr)`：用来去重数组。
   - `isEmpty(arr)`：用来检查是否为空。
   - `maskName(name)`：用来对姓名进行脱敏处理。
   - `maskPhone(name)`：用来对姓名进行脱敏处理。
   - `maskCardNumber(id)`：用来对证件号进行脱敏处理。

2. **验证方法($validate)**：
   - `validateIdCard(id)`：验证身份证号码是否有效。
   - `validateName(name)`：验证姓名是否符合常见规则。
   - `validatePhone(phone)`：验证电话号码是否合法。
   - `validateEmail(email)`：验证邮箱是否合法。
npm package: @sunnyfan/utils
Description: this is a tools package handle time formart egg
Author: sunnyfan
Latest version: 0.0.5

### 安装
npm i @sunnyfan/utils
yarn add @sunnyfan/utils

### 测试
sudo npx babel-node test/index.js

### 使用
import { transferDate } from '@sunnyfan/utils/tools'

const date = new Date()
eg:
  2021-07-08          transferDate(date,1) 
  2021-07-08 21:08:09 transferDate(date,2) 
  08                  transferDate(date,3)
npm package: @sunnykim/ex-ui
Description: exchange ui components
Author: sunnykim
Latest version: 0.1.3

# ex-ui

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
npm package: @sunnykim/header-and-footer
Description: ## Project setup ``` npm install ```
Latest version: 0.1.0

# sl-header

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
npm package: @sunnykim/sl-header
Description: ## Project setup ``` npm install ```
Latest version: 0.1.2

# sl-header

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
npm package: @sunnykim/sl-ui
Description: ## Project setup ``` npm install ```
Latest version: 0.1.4

# sl-header

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
npm package: @sunnykumarsk53/signature-processing
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.2.6.
Latest version: 1.1.0

# SignatureProcessing

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.2.6.

## Code scaffolding

Run `ng generate component component-name --project signature-processing` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project signature-processing`.
> Note: Don't forget to add `--project signature-processing` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build signature-processing` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build signature-processing`, go to the dist folder `cd dist/signature-processing` and run `npm publish`.

## Running unit tests

Run `ng test signature-processing` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.