🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more
Socket
Book a DemoInstallSign in
Socket

diana

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diana

fe customized tool library

Source
npmnpm
Version
0.4.8
Version published
Weekly downloads
35
25%
Maintainers
1
Weekly downloads
 
Created
Source

npm version week download Build Status codecov LICENSE MIT

前端定制化工具库

  • 使用 TypeScript 构建(更为友好地支持装饰器等语法)
  • 支持 Browser、Node 两端
  • 支持按需加载(相关 babel 插件正在开发)

Install

yarn add diana || npm install diana --save

Usage

使用文档 :tada:

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

同时集成了一些有用的装饰器函数,例如可以像如下使用防抖函数:

import { Debounce } from 'diana'
class Demo {
  @Debounce(1000)
  submit() {} // 点击按钮
}

开发历程

关于 diana

Contribute

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

Keywords

tool

FAQs

Package last updated on 07 Sep 2018

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