/diana

fe tool library :nut_and_bolt:

Primary LanguageTypeScriptMIT LicenseMIT

npm version week download Build Status codecov LICENSE MIT

A lightweight tool library (Support for browser and node environment)

Installation

yarn add diana || npm install diana --save

You can also download diana.js directly in the browser,it support UMD common module specification.

Usage

Document 🎉

import * as _ from 'diana'    // browser
// const _ = require('diana') // node.js
const isEqual = _.equal([1, 2, 3], [1, 2, 3]) // true

And there are some useful decorator methods in the diana, for example as follow:

import { Debounce } from 'diana'
class Demo {
  @Debounce(1000)
  submit() {
    // call api
  }
}

Contribute

Before submitting a pull request, please make sure read how to pr