New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@alitajs/autils

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alitajs/autils

Awesome Utils(前端常用工具方法)

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-95.65%
Maintainers
3
Weekly downloads
 
Created
Source

awe-utils

Alita NPM version NPM downloads

小巧实用的前端工具类库。

特性

  • ✏️ TypeScript: 使用 TS 编写,类型友好
  • ✨ 源于项目:日常项目的积累
  • 🐳 严格测试:使用Jest对每个方法,进行严格的测试

使用

  1. 安装依赖

npm install awe-utils || yarn add awe-utils

  1. 使用
import { numberToChinese } from 'awe-utils';

// 一
console.log(numberToChinese(1));

// 一万
console.log(numberToChinese(10000));

API

numberToChinese

数字转中文工具方法 numberToChinese(number: number): string

  • 引入版本

0.0.1

  • 参数

number(number): 需要转换的数字

  • 返回值

(string): 转换后的文本

  • 例子
numberToChinese(1);
// => 一

FAQs

Package last updated on 15 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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