@lycd/utils
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@lycd/utils

前端业务代码工具库,支持TS引用

目的:高效率完成前端业务代码

我们把业务开发中常用的工具类函数,统一封装到@lycd/utils包下,以提高开发效率。

安装使用

$ npm install @lycd/utils
import { getCookie } from "@lycd/utils";

const cookie = getCookie("test");

支持按需加载(推荐)

安装babel插件

$ npm install babel-plugin-lyc --save-dev

.babelrc中添加如下配置即可

"plugins": [
    [
      "babel-plugin-lyc",
      {
        "library": ["@lycd/utils"]
      }
    ],
]

Readme

Keywords

none

Package Sidebar

Install

npm i @lycd/utils

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

66.2 kB

Total Files

95

Last publish

Collaborators

  • zhanghee
  • bruceliu68