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