UNPKG

1.38 kBMarkdownView Raw
1<div align="center">
2 <img src="http://oqhtscus0.bkt.clouddn.com/dcce7b9509a0e23f91d8cd2aa3ecffd3.jpg-200">
3</div>
4
5[![npm version](https://badge.fury.io/js/diana.svg)](https://badge.fury.io/js/diana) [![week download](https://img.shields.io/npm/dw/diana.svg)](https://www.npmjs.com/package/diana) ![Build Status](https://travis-ci.org/MuYunyun/diana.svg?branch=master) [![codecov](https://codecov.io/gh/MuYunyun/diana/branch/master/graph/badge.svg)](https://codecov.io/gh/MuYunyun/diana) ![LICENSE MIT](https://img.shields.io/npm/l/express.svg)
6
7A lightweight fe tool library
8
9### Installation
10
11```bash
12yarn add diana || npm install diana --save
13```
14
15You can also download [diana.js](https://github.com/MuYunyun/diana/blob/master/lib/diana.js) directly in the browser,it support UMD common module specification.
16
17### Usage
18
19> [Document](http://muyunyun.cn/diana/) :tada:
20
21```js
22import * as _ from 'diana' // browser
23// const _ = require('diana') // node.js
24const isEqual = _.equal([1, 2, 3], [1, 2, 3]) // true
25```
26
27And there are some useful decorator methods in the diana, for example as follow:
28
29```js
30import { Debounce } from 'diana'
31class Demo {
32 @Debounce(1000)
33 submit() {
34 // call api
35 }
36}
37```
38
39### Contribute
40
41Before submitting a pull request, please make sure read [how to pr](https://github.com/MuYunyun/diana/blob/master/.github/PULL_REQUEST_TEMPLATE.md)
\No newline at end of file