🚀 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.5.0
Version published
Weekly downloads
35
25%
Maintainers
1
Weekly downloads
 
Created
Source

npm version week download Build Status codecov LICENSE MIT

前端定制化工具库

  • 使用 TypeScript 构建(更为友好地支持装饰器等语法)
  • 支持 Browser、Node 两端
  • 支持按需加载

Install

npm install diana --save

Usage

使用文档 :tada:

import _ from 'diana'         // ES6
// const _ = require('diana') // common.js
const isEqual = _.equal([1, 2, 3], [1, 2, 3]) // true

配合使用 babel-plugin-on-demand-loading 可以实现按需加载,体积能极大的减小。

与此同时该库后续会集成一些有用的装饰器函数,比如目前可以像如下使用防抖函数:

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

Develop Process

更新日志

关于 diana

按需加载实践

Contribute

If you want to contrubute this proj, you can read how to pr

Keywords

tool

FAQs

Package last updated on 11 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