# xm-fns

> 一个前端的常用方法的工具库，包含CSS的、JavaScript的…… A front-end tool library for common methods, includes CSS, JavaScript ...

Latest version **1.1.1** (published 2023-08-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install xm-fns
pnpm add xm-fns
yarn add xm-fns
bun add xm-fns
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2023-08-30 |
| First published | 2022-05-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 39.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | littleHiuman |
| Maintainers | littlehiuman |

## Links

- npm: https://www.npmjs.com/package/xm-fns
- Repository: https://github.com/littleHiuman/xm-fns
- Homepage: https://github.com/littleHiuman/xm-fns#readme
- Issues: https://github.com/littleHiuman/xm-fns/issues
- npm.io page: https://npm.io/package/xm-fns

## Recent versions

- 1.1.1 (latest) — 2023-08-30
- 1.1.0 — 2023-03-16
- 1.0.9 — 2023-03-13
- 1.0.8 — 2023-03-13
- 1.0.7 — 2023-03-10
- 1.0.6 — 2023-03-01
- 1.0.5 — 2023-02-15
- 1.0.3 — 2022-07-13
- 1.0.2 — 2022-05-06
- 1.0.1 — 2022-05-05
- 1.0.0 — 2022-05-05

## README

# xm-fns

一个前端的常用方法的工具库，包含CSS的、JavaScript的……

A front-end tool library for common methods, includes CSS, JavaScript ...

💐：1.0.8 版本开始有代码提示啦（仅 npm 包的方式）

[xm-fns - npm 地址](https://www.npmjs.com/package/xm-fns)

[xm-fns - Github 地址](https://github.com/littleHiuman/xm-fns)

[文档](./dist/docs.md)

## 安装
`npm install xm-fns`

## 使用

```js
// npm 包的方式：
// 1. 解构引入
import { debounce } from 'xm-fns'
// 2. 引入全部
// import xmFns from 'xm-fns'
// const debounce = xmFns.debounce

// cdn 包的方式
// 解构引入
// const { debounce } = window.xmFns
// 或
// const debounce = window.xmFns.debounce

function fn () { ... }
var myFn = debounce(fn, 1000)
```

## 项目命令

### 打包
`npm run build`

### 测试
`npm run test`

### eslint检查
`npm run style`

### 打包、eslint检查、测试
`npm run validate`

### 生成文档
`npm run genDocs`

## 其他
如果使用过程中，有bug、建议/意见都可以提issue~

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