Socket
Book a DemoInstallSign in
Socket

@dsyd/utils

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dsyd/utils

DSYD前端业务代码工具库

1.0.7
latest
npmnpm
Version published
Maintainers
4
Created
Source

@dsyd/utils

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

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

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

安装使用

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

const cookie = getCookie("test");

支持按需加载(推荐)

安装babel插件

$ npm install @dsyd/babel-plugin-ds --save-dev

.babelrc中添加如下配置即可

"plugins": [
    [
      "@dsyd/babel-plugin-ds",
      {
        "library": ["@dsyd/utils"]
      }
    ],
]

FAQs

Package last updated on 17 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.