5.5.2 • Published 4 months ago

@flypeng/tool v5.5.2

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

@flypeng/tool

⛳ Introduction

@flypeng/tool 是一个集成业务中常用的工具函数库。集成封装常用业务函数库,可以极大程度上的提高开发者的效率。

搭建这么一个函数库的灵感来自于 VueUse,把每一个工具函数想象成为一个钩子函数去使用。目标就是集成所有常用的工具函数,并且可以轻松使用它。

📦 Installation

npm install @flypeng/tool@latest

yarn add @flypeng/tool@latest

pnpm add @flypeng/tool@latest

📚 Usage

@flypeng/tool/browser

集成所有非 Node Functions 环境下的工具函数

import { useRandomInteger, useIsMobile } from '@flypeng/tool/browser';

const randomInteger = useRandomInteger(10, 100); // Integer in [10, 100]

@flypeng/tool/node

集成 Node 环境下的工具函数

import { useGetCurrentPath, useIsFile } from '@flypeng/tool/node';

const isFile = useIsFile(useGetCurrentPath()); // isFile is Boolean

License

MIT License © 2022 FlingYP

5.5.2

4 months ago

5.5.1

4 months ago

5.5.0

5 months ago

5.3.2

9 months ago

5.4.0

7 months ago

5.3.1

12 months ago

5.3.0

1 year ago

5.2.0

1 year ago

5.1.0

1 year ago

5.0.1

1 year ago

5.0.0-0

1 year ago

5.0.0-1

1 year ago

5.0.0

1 year ago

2.3.0

1 year ago

2.2.0

2 years ago

3.0.1

1 year ago

3.0.0

1 year ago

4.1.0

1 year ago

4.0.1

1 year ago

4.0.0

1 year ago

4.2.0

1 year ago

4.1.1

1 year ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.0.0

2 years ago