1.1.1 • Published 9 months ago

xm-fns v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

xm-fns

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

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

💐:1.0.8 版本开始有代码提示啦(仅 npm 包的方式)

xm-fns - npm 地址

xm-fns - Github 地址

文档

安装

npm install xm-fns

使用

// 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~

1.1.1

9 months ago

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago