@alitajs/autils
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "@alitajs/autils", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Awesome Utils(前端常用工具方法)", | ||
"repository": "git@github.com:ts-react/awe-utils.git", | ||
"repository": "git@github.com:alitajs/autils.git", | ||
"author": "wangxingkang <wang_xingkang@qq.com>", | ||
"license": "MIT", | ||
"main": "dist/index.js", | ||
"unpkg": "dist/index.umd.js", | ||
"module": "dist/index.esm.js", | ||
"typings": "dist/src/index.d.ts", | ||
"unpkg": "lib/index.js", | ||
"module": "es/index.js", | ||
"typings": "es/index.d.ts", | ||
"files": [ | ||
"dist" | ||
"es", | ||
"lib" | ||
], | ||
"scripts": { | ||
"bootstrap": "yarn || npm i", | ||
"build": "father build", | ||
"doc:dev": "father doc dev", | ||
"doc:build": "father doc build", | ||
"doc:deploy": "father doc deploy", | ||
"test": "father test", | ||
"prepare": "yarn build" | ||
"build": "lotus-tools build", | ||
"test": "umi-test" | ||
}, | ||
"devDependencies": { | ||
"@lotus-ui/tools": "^0.2.5", | ||
"@types/jest": "^24.0.12", | ||
"@types/qs": "^6.5.3", | ||
"qs": "^6.7.0", | ||
"father": "^2.13.5", | ||
"typescript": "^3.4.5" | ||
"typescript": "^3.4.5", | ||
"umi-test": "^1.7.1" | ||
}, | ||
@@ -31,0 +29,0 @@ "publishConfig": { |
@@ -1,10 +0,10 @@ | ||
<h1 align="center">awe-utils</h1> | ||
<h1 align="center">autils</h1> | ||
[![Alita](https://img.shields.io/badge/alitajs-autils-blue.svg)](https://github.com/alitajs/autils) | ||
[![NPM version](https://img.shields.io/npm/v/awe-utils.svg?style=flat)](https://npmjs.org/package/awe-utils) | ||
[![NPM downloads](http://img.shields.io/npm/dm/awe-utils.svg?style=flat)](https://npmjs.org/package/awe-utils) | ||
[![NPM version](https://img.shields.io/npm/v/%40alitajs%2Fautils.svg?style=flat)](https://npmjs.org/package/@alitajs/autils) | ||
[![NPM downloads](http://img.shields.io/npm/dm/%40alitajs%2Fautils.svg?style=flat)](https://npmjs.org/package/@alitajs/autils) | ||
<h2 align="center">小巧实用的前端工具类库。</h2> | ||
# 特性 | ||
## 特性 | ||
@@ -15,12 +15,22 @@ * ✏️ TypeScript: 使用 TS 编写,类型友好 | ||
# 使用 | ||
## 使用 | ||
1. 安装依赖 | ||
`npm install awe-utils` || `yarn add awe-utils` | ||
* npm安装 | ||
``` | ||
npm install -D @alitajs/autils | ||
``` | ||
* yarn 安装(推荐) | ||
``` | ||
yarn add @alitajs/autils | ||
``` | ||
2. 使用 | ||
``` | ||
import { numberToChinese } from 'awe-utils'; | ||
import { numberToChinese } from '@alitajs/autils'; | ||
@@ -34,6 +44,25 @@ // 一 | ||
# API | ||
## 目录 | ||
## numberToChinese | ||
### 📦 工具函数 | ||
* Array | ||
🔖 | 🔖 | 🔖 | 🔖 | ||
--- | --- | --- | --- | ||
[arrayToObject](#arrayToObject) | [arrayToTree](#arrayToTree) | [assign](#assign) | [assign](#assign) | ||
## API | ||
### arrayToObject | ||
将数组转换为对象 | ||
### arrayToTree | ||
将数组转换为树 | ||
### numberToChinese | ||
> 数字转中文工具方法 `numberToChinese(number: number): string` | ||
@@ -40,0 +69,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
182
93
116141
6
2197
1