Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@alitajs/autils

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alitajs/autils - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

es/arrayToObject.d.ts

26

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc