{"id":21933101,"url":"https://github.com/catsandmice/medash","last_synced_at":"2025-04-19T20:57:14.998Z","repository":{"id":41156733,"uuid":"386298645","full_name":"CatsAndMice/medash","owner":"CatsAndMice","description":"前端JavaScipt业务代码工具库🚀 🚀","archived":false,"fork":false,"pushed_at":"2022-10-26T12:10:13.000Z","size":13973,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2024-04-25T20:21:48.928Z","etag":null,"topics":["calendar","date","datetime","javascript","npm","tools","webstorage"],"latest_commit_sha":null,"homepage":"http://jshai.gitee.io/tool/docs","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/CatsAndMice.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2021-07-15T13:24:13.000Z","updated_at":"2023-04-21T05:33:50.000Z","dependencies_parsed_at":"2022-07-14T08:31:25.578Z","dependency_job_id":null,"html_url":"https://github.com/CatsAndMice/medash","commit_stats":null,"previous_names":["lihai-boop/tool"],"tags_count":46,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatsAndMice%2Fmedash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatsAndMice%2Fmedash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatsAndMice%2Fmedash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatsAndMice%2Fmedash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CatsAndMice","download_url":"https://codeload.github.com/CatsAndMice/medash/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227011024,"owners_count":17716674,"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":["calendar","date","datetime","javascript","npm","tools","webstorage"],"created_at":"2024-11-29T00:07:46.311Z","updated_at":"2024-11-29T00:07:47.610Z","avatar_url":"https://github.com/CatsAndMice.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"./docs/medash.png\" style=\"width:100%;\"\u003e    \n\n![npm](https://img.shields.io/npm/v/medash)\n![npm](https://img.shields.io/npm/dt/medash)\n![npm bundle size](https://img.shields.io/bundlephobia/minzip/medash)\n[![](https://data.jsdelivr.com/v1/package/npm/medash/badge)](https://www.jsdelivr.com/package/npm/medash)\n[![LICENSE MIT](https://img.shields.io/npm/l/medash.svg)](https://www.npmjs.com/package/medash)\n\n \n\n前端`JavaScipt`业务代码工具库\n\n\u003e 业务常用代码片段汇总，高效率完成Task\n\n业务开发过程中，经常用到`日期格式化`、`url参数转对象`、`浏览器类型判断`、`节流函数`等常用函数，为避免不同项目多次复制粘贴的麻烦，这里统一封装，并发布到npm，以提高开发效率。如果你也有常用的代码，欢迎为本项目提交pr。\n\n## 安装  \n\n### CDN\n\u003c!--cdn-links-start--\u003e\n```html\n\u003cscript src=\"https://unpkg.com/medash@3.4.1/dist/medash.min.js\"\u003e\u003c/script\u003e\n```\n\u003c!--cdn-links-end--\u003e\n### npm\n\n推荐使用 npm 安装[[1\\]](https://v3.cn.vuejs.org/guide/installation.html#footnote-1) \n\n```shell\nnpm install medash\n//或 yarn add  medash\n```\n\n### 完整导入\n\n```js\nconst medash = require('medash');\nmedash.eq('medash','medash');//true\n```\n\n### 按需导入\n\n\u003e 按需导入只会加载需要代码，减少文件体格\n\n```js\nconst eq = require('medash/lib/eq');\neq('medash','medash');//true\n```\n [webpack](https://webpack.js.org/) 或 [Rollup](https://rollupjs.org/) 模块打包器配合使用，可使用ES6模块化导入\n```js\nimport eq from 'medash/lib/eq';\neq('medash','medash');//true\n```\n\u003e 注意点: 使用某个API时,如果报错请检查`medash`版本，确保为最新的版本\n\n### 支持Tree shaking\n\u003e 构建时，去除无用代码，减少打包后的文件体积\n```js\nimport {eq} from \"medash\"\n//...\n```\n\n## :package:  API文档\n\n[查看文档](http://jshai.gitee.io/tool/docs) \n\n\n## 协议\n\n[MIT](http://opensource.org/licenses/MIT) \n\n\n## 联系我\n\n\u003cimg alt=\"微信号\" src = 'https://i.bmp.ovh/imgs/2022/03/505687cc33a7b2c4.jpg' width=\"150\"/\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatsandmice%2Fmedash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatsandmice%2Fmedash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatsandmice%2Fmedash/lists"}