Greasy Fork is available in English.

rx-util

rxliuli 在浏览器上使用的 js 工具集

2019-06-23 일자. 최신 버전을 확인하세요.

이 스크립트는 직접 설치해서 쓰는 게 아닙니다. 다른 스크립트가 메타 명령 // @require https://update.greasyfork.org/scripts/382120/711666/rx-util.js(으)로 포함하여 쓰는 라이브러리입니다.

질문, 리뷰하거나, 이 스크립트를 신고하세요.
개발자
rxliuli
버전
0.0.1.20190623175006
생성
2019-04-22
갱신
2019-06-23
라이선스
없음

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'