{"id":16384380,"url":"https://github.com/muyunyun/diana","last_synced_at":"2026-03-06T02:41:02.207Z","repository":{"id":26847290,"uuid":"110807841","full_name":"MuYunyun/diana","owner":"MuYunyun","description":"fe customized tools:nut_and_bolt:","archived":false,"fork":false,"pushed_at":"2023-01-18T06:01:10.000Z","size":2873,"stargazers_count":71,"open_issues_count":30,"forks_count":11,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-10T23:12:06.101Z","etag":null,"topics":["diana","javascript","utilities"],"latest_commit_sha":null,"homepage":"http://muyunyun.cn/diana/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MuYunyun.png","metadata":{"files":{"readme":"README-zh-cn.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-15T08:47:03.000Z","updated_at":"2024-10-30T08:17:58.000Z","dependencies_parsed_at":"2023-02-10T13:31:33.421Z","dependency_job_id":null,"html_url":"https://github.com/MuYunyun/diana","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuYunyun%2Fdiana","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuYunyun%2Fdiana/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuYunyun%2Fdiana/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuYunyun%2Fdiana/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MuYunyun","download_url":"https://codeload.github.com/MuYunyun/diana/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243725010,"owners_count":20337658,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["diana","javascript","utilities"],"created_at":"2024-10-11T04:11:18.492Z","updated_at":"2026-03-06T02:41:02.158Z","avatar_url":"https://github.com/MuYunyun.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"http://oqhtscus0.bkt.clouddn.com/dcce7b9509a0e23f91d8cd2aa3ecffd3.jpg-200\"\u003e\n\u003c/div\u003e\n\n[![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/diana.svg)\n\n[English](./README.md) | 简体中文\n\nDiana 是轻量实用的 JavaScript 工具库。\n\n* 使用 `TypeScript`、`Rollup` 构建\n* 支持 `Browser`、`Node` 两端\n* 支持[按需加载](https://github.com/demos-platform/babel-plugin-on-demand-loading)\n\n### Installp\n\n```bash\nnpm install diana --save\n```\n\n### Usage\n\n\u003e [使用文档](http://muyunyun.cn/diana/) :tada:\n\n```js\nimport _ from 'diana'         // ES6\n// const _ = require('diana') // common.js\nconst isEqual = _.equal([1, 2, 3], [1, 2, 3]) // true\n```\n\n\u003e 配合使用 [babel-plugin-on-demand-loading](https://github.com/demos-platform/babel-plugin-on-demand-loading) 可以实现按需加载, 体积能极大的减小。\n\n与此同时该库后续会集成一些有用的装饰器函数, 比如目前可以像如下使用防抖函数:\n\n```js\nimport { Debounce } from 'diana'\nclass Demo {\n  @Debounce(1000)\n  submit() {} // 点击按钮\n}\n```\n\n### Philosophy\n\n* 抽离出系统间通用的方法;\n* 定制化的瑞士军刀;\n\n### Develop Process\n\n* [更新日志](https://github.com/MuYunyun/diana/blob/master/CHANGELOG.md)\n* [关于 Diana](https://github.com/MuYunyun/diana/issues/1)\n* [按需加载实践](https://github.com/MuYunyun/diana/issues/5)\n\n### Contribute\n\nIf you want to contrubute this proj, you can read [how to pr](https://github.com/MuYunyun/diana/blob/master/.github/PULL_REQUEST_TEMPLATE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuyunyun%2Fdiana","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuyunyun%2Fdiana","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuyunyun%2Fdiana/lists"}