# tools-fucs

> 修复深克隆BUG

Latest version **1.0.9** (published 2020-11-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install tools-fucs
pnpm add tools-fucs
yarn add tools-fucs
bun add tools-fucs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2020-11-23 |
| First published | 2020-11-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | HW0001 |
| Maintainers | zyl1024 |
| Keywords | tools, function, javascript |

## Links

- npm: https://www.npmjs.com/package/tools-fucs
- Repository: https://github.com/HW0001/js-tools-function
- Homepage: https://github.com/HW0001/js-tools-function#readme
- Issues: https://github.com/HW0001/js-tools-function/issues
- npm.io page: https://npm.io/package/tools-fucs

## Dependencies (2)

- [uglify-js](https://npm.io/package/uglify-js.md) ^3.11.6
- [rollup-plugin-terser](https://npm.io/package/rollup-plugin-terser.md) ^7.0.2

## Recent versions

- 1.0.9 (latest) — 2020-11-23
- 1.0.8 — 2020-11-23
- 1.0.7 — 2020-11-23
- 1.0.6 — 2020-11-18
- 1.0.5 — 2020-11-18
- 1.0.4 — 2020-11-18
- 1.0.3 — 2020-11-18
- 1.0.1 — 2020-11-18
- 1.0.0 — 2020-11-18

## README

### 这是一个 JavaScript 的工具函数库,用于收集在工作中常用的一些工具函数

## 安装
`npm install tools-fucs`

`yarn add tools-fucs `

## 使用 

#### 节流函数

`import {throttle} from 'tools-fucs'`

`throttle(fn,interval)`

#### 防抖函数

`import {debounce} from 'tools-fucs'`

`debounce(fn,interval)`

#### 深克隆

`import {deepClone} from 'tools-fucs'`

`const cloneObject = deepClone(object)`

#### 日期格式化

`import 'tools-fucs'`

`const formatDate = new Date().format('YYYY-MM-DD')` //已挂载在Date原型上

##### 目前支出的格式化方式如下:
 以 2019-06-01T18:06:08 为例
| 符号 | 结果
| :--- | :---- 
| yyyy/YYYY | 2019
| yy/YY     | 19
| MM        | 09
| M         | 9
| dd/DD     | 01
| d/D       | 1
| hh/HH     | 18
| h/H       | 6
| mm        | 06
| m         | 6
| ss/SS     | 08
| s/s       | 8

#### guid

`import {newGuid} from 'tools-fucs'`

`const newGuid = newGuid()`

#### 生成指定范围内的随机数

`import {createRandom} from 'tools-fucs'`

`const newGuid = createRandom(10,100)`

---
_Source: https://npm.io/package/tools-fucs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
