Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ovyvo/yan-utils
A js utils for easy work!
https://github.com/ovyvo/yan-utils
Last synced: 2 months ago
JSON representation
A js utils for easy work!
- Host: GitHub
- URL: https://github.com/ovyvo/yan-utils
- Owner: OVYVO
- Created: 2020-09-18T05:31:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-29T07:53:42.000Z (6 months ago)
- Last Synced: 2024-11-10T16:33:37.312Z (2 months ago)
- Language: TypeScript
- Size: 269 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
###### yan-utils
> 🚀🚀🚀yan-utils 升级啦!!!新版本使用 typescript 重构了所有的方法,构建工具使用 rollup,相较 v1.x 版本,删除了一些并不常用的方法,同时也加入了一些新的方法。多种导出模式支持 umd,es,cjs 导入方式,打包体积更小。
###### 安装
```javascript
yarn add yan-utils@latest
# or
npm i yan-utils@latest -S
# or
pnpm add yan-utils@latest
```###### 引入
```js
//umd
import { qnUpload } from "yan-utils";
//es
import { qnUpload } from "yan-utils/lib/es/qnUpload.js";
//cjs
const { qnUpload } = require("yan-utils/lib/cjs/qnUpload.cjs");
```###### 注意事项
> 👽️👽️👽️ 如果您需要使用**qnUpload**函数,且项目中已安装**qiniu-js**依赖,您可以放心使用,如项目中未安装**qiniu-js**依赖请执行以下任意命令自行安装:
```javascript
yarn add qiniu-js
# or
npm i qiniu-js
# or
pnpm add qiniu-js
```