{"id":23602823,"url":"https://github.com/lzwme/fe-utils","last_synced_at":"2026-02-24T01:34:19.487Z","repository":{"id":41522570,"uuid":"496231448","full_name":"lzwme/fe-utils","owner":"lzwme","description":"前端 node、web 项目开发常用的工具函数集合。","archived":false,"fork":false,"pushed_at":"2025-12-16T09:03:41.000Z","size":2501,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-19T22:10:30.663Z","etag":null,"topics":["fed","lzwme","nodejs","typescript"],"latest_commit_sha":null,"homepage":"https://lzwme.github.io/fe-utils/","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/lzwme.png","metadata":{"files":{"readme":"README.MD","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-05-25T12:57:27.000Z","updated_at":"2025-12-16T09:03:45.000Z","dependencies_parsed_at":"2025-12-16T14:04:19.561Z","dependency_job_id":null,"html_url":"https://github.com/lzwme/fe-utils","commit_stats":{"total_commits":118,"total_committers":1,"mean_commits":118.0,"dds":0.0,"last_synced_commit":"ccac818be6539474b11f4636010fa21afb8f38bb"},"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"purl":"pkg:github/lzwme/fe-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzwme%2Ffe-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzwme%2Ffe-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzwme%2Ffe-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzwme%2Ffe-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lzwme","download_url":"https://codeload.github.com/lzwme/fe-utils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzwme%2Ffe-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29766696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T01:28:30.166Z","status":"ssl_error","status_checked_at":"2026-02-24T01:28:27.518Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["fed","lzwme","nodejs","typescript"],"created_at":"2024-12-27T12:13:22.200Z","updated_at":"2026-02-24T01:34:19.461Z","avatar_url":"https://github.com/lzwme.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![@lzwme/fe-utils](https://nodei.co/npm/@lzwme/fe-utils.png)][npm-url]\n\n# @lzwme/fe-utils\n\n[![NPM version][npm-badge]][npm-url]\n[![node version][node-badge]][node-url]\n![license MIT](https://img.shields.io/github/license/lzwme/fe-utils)\n\n[![build status](https://github.com/lzwme/fe-utils/actions/workflows/node-ci.yml/badge.svg)](https://github.com/lzwme/fe-utils/actions/workflows/node-ci.yml)\n[![npm download][download-badge]][download-url]\n[![GitHub issues][issues-badge]][issues-url]\n[![GitHub forks][forks-badge]][forks-url]\n[![GitHub stars][stars-badge]][stars-url]\n\n前端 node、web 项目开发常用的工具函数集合。主要为在多个项目长期开发实践过程中频繁使用的工具类。部分实现参考借鉴了各流行开源库。\n\n## 功能特性\n\n- 少即是多。只收集高频使用的方法\n- 部分工具函数核心实现收集自各流行开源库\n- 支持 tree-shaking 方式调用(esm)\n- more...\n\n## 安装\n\n```bash\n# use npm\nnpm i @lzwme/fe-utils\n# use yarn\nyarn add @lzwme/fe-utils\n# use pnpm\npnpm add @lzwme/fe-utils\n```\n\n## 使用\n\n默认导出为 `Node.js` 下的工具集。\n\n`commonjs` 示例：\n\n```ts\nconst { md5, getLoger } = rquire('@lzwme/fe-utils');\nconst logger = getLoger();\n\nlogger.info(md5('123456'));\n```\n\n`es module` 示例：\n\n```ts\nimport { dateFormat } from '@lzwme/fe-utils';\n\nconsole.log(dateFormat('yyyy-MM-dd', new Date()));\n```\n\n在纯浏览器的 `web` 项目中使用示例：\n\n```ts\nimport { dateFormat, Logger } from '@lzwme/fe-utils/esm/web';\n\nconst logger = Logger.getLogger();\nlogger.log(dateFormat('yyyy-MM-dd', new Date()));\n```\n\n更多细节可参考 [API 文档](https://lzwme.github.io/fe-utils/)。\n\n## 开发\n\n本地二次开发：\n\n```bash\ngit clone https://github.com/lzwme/fe-utils\nyarn install\nnpm link\nyarn dev\n```\n\n或者 [fork](https://github.com/lzwme/fe-utils/fork) 本项目进行代码贡献。\n\n**欢迎贡献想法与代码。**\n\n## Thanks\n\n- https://github.com/microsoft/vscode\n\n## License\n\n`@lzwme/fe-utils` is released under the MIT license.\n\n该插件由[志文工作室](https://lzw.me)开发和维护。\n\n\n[stars-badge]: https://img.shields.io/github/stars/lzwme/fe-utils.svg\n[stars-url]: https://github.com/lzwme/fe-utils/stargazers\n[forks-badge]: https://img.shields.io/github/forks/lzwme/fe-utils.svg\n[forks-url]: https://github.com/lzwme/fe-utils/network\n[issues-badge]: https://img.shields.io/github/issues/lzwme/fe-utils.svg\n[issues-url]: https://github.com/lzwme/fe-utils/issues\n[npm-badge]: https://img.shields.io/npm/v/@lzwme/fe-utils.svg?style=flat-square\n[npm-url]: https://npmjs.com/package/@lzwme/fe-utils\n[node-badge]: https://img.shields.io/badge/node.js-%3E=_14.0.0-green.svg?style=flat-square\n[node-url]: https://nodejs.org/download/\n[download-badge]: https://img.shields.io/npm/dm/@lzwme/fe-utils.svg?style=flat-square\n[download-url]: https://npmjs.com/package/@lzwme/fe-utils\n[bundlephobia-url]: https://bundlephobia.com/result?p=@lzwme/fe-utils@latest\n[bundlephobia-badge]: https://badgen.net/bundlephobia/minzip/@lzwme/fe-utils@latest\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flzwme%2Ffe-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flzwme%2Ffe-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flzwme%2Ffe-utils/lists"}