Skip to content
日常使用的 JavaScript 工具库,欢迎 Star -(๑☆‿ ☆#)ᕗ
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build 更新一些非源代码的 js 文件以使其符合 ESLint 规则 May 9, 2019
dist 发布新版本 [1.6.14], 这或许是最后一个使用 js 编写并发布的版本了吧(之后将重构为 ts 实现) May 17, 2019
src Merge branch 'dev' of github.com:rxliuli/rx-util into dev May 17, 2019
test 添加 es 版本, 以供现代前端构建工具使用 Apr 18, 2019
.esdoc.json 更新 esdoc 配置, 添加 lint 和 converage 项 Apr 13, 2019
.eslintignore 添加 eslint, 改用 rollup 打包工具 Jan 22, 2019
.eslintrc.js 配置 eslint 默认使用尾逗号 Apr 24, 2019
.gitignore 忽略本地打包的 tar.gz 文件 May 3, 2019
.huskyrc.js 更新一些非源代码的 js 文件以使其符合 ESLint 规则 May 9, 2019
.lintstagedrc 添加 husky 提交钩子 Apr 5, 2019
CNAME 添加 github pages 发布脚本 Apr 18, 2019
CONTRIBUTING.md 更新贡献指南 May 5, 2019
LICENSE 更新 1.6.11, 删除 996ICU 许可证 Apr 20, 2019
babel.config.js 修复 babel 引起的错误 Mar 28, 2019
jest.config.js 更新 jest 的版本 May 4, 2019
jsconfig.json 添加 es 版本, 以供现代前端构建工具使用 Apr 18, 2019
package.json 发布新版本 [1.6.14], 这或许是最后一个使用 js 编写并发布的版本了吧(之后将重构为 ts 实现) May 17, 2019
readme-zh-cn.md 更新介绍说明中的测试统计图标 May 15, 2019
readme.md 更新介绍说明中的测试统计图标 May 15, 2019
yarn.lock 更新 jest 的版本 May 4, 2019

readme.md

JavaScript tool library for everyday use

rx-util has nothing to do with the famous rx series(rxjs/rxjava/...) , just the first two of my user name(rxliuli), don't misunderstand!

npm esdoc coverage license-MIT-blue

Contribution guide

Introduction

English 简体中文

I need a lot of the same functions when writing a traditional front end every day, so I need to write a library that I can use on my browser, and that's it. Most of the code in the library has passed unit testing, but please be cautious in production environments. Most of the parts that do not contain unit tests are DOM operation-related functions, as well as some asynchronous code.

If you encounter any problems, please feel free to mention the issue , or PR .

Use

Browser

Download rx-util.min.js and import it in HTML

<script src="https://github.com/rxliuli/rx-util/raw/master/dist/rx-util.min.js"></script>

The development environment is more recommended to use rx-util.js with uncompressed code and all comment content.

Modern front end

If you use a modern front-end build tool (real projects are not used, but our tests are available), you can also install them into your project.

yarn

yarn add rx-util

Or npm

npm i rx-util

Then use the named import to

import { dateFormat } from 'rx-util'

or

import * as rx from 'rx-util'
You can’t perform that action at this time.