# lyc-utils **Repository Path**: lyc_8/lyc-utils ## Basic Information - **Project Name**: lyc-utils - **Description**: 常用工具类库 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-08-22 - **Last Updated**: 2024-06-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # @lycd/utils 前端业务代码工具库,支持TS引用 > 目的:高效率完成前端业务代码 我们把业务开发中常用的工具类函数,统一封装到`@lycd/utils`包下,以提高开发效率。 ## 安装使用 ```bash $ npm install @lycd/utils ``` ````javascript import { getCookie } from "@lycd/utils"; const cookie = getCookie("test"); ```` ## 支持按需加载(推荐) 安装babel插件 ```bash $ npm install babel-plugin-lyc --save-dev ``` .babelrc中添加如下配置即可 ```json "plugins": [ [ "babel-plugin-lyc", { "library": ["@lycd/utils"] } ], ] ```