New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

subayai-utils

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

subayai-utils

一个短小而精悍的现代JavaScript使用工具库

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

快速上手

安装

通过 npm 安装

# npm
npm install subayai-utils

# yarn
yarn add subayai-utils

# pnpm 🔥
pnpm add subayai-utils

通过 CDN 安装

使用 subayai-utils 最简单的方法是直接在 HTML 文件中引入 CDN 链接,之后你可以通过全局变量 syTool 访问到所有方法。

<script type="module" src="https://cdn.jsdelivr.net/gh/husky-dot/subayai-utils/dist/index.umd.js"></script>

<script>
  const { getCamelCase } = syTool;
  console.log(getCamelCase("a-bc"));
</script>

引入方式

ES MODULE 方式

下面是使用 ES MODULE 方式引入 randomString 方法,用来生成随机字符串

import { randomString } from 'subayai-utils';

randomString(20); // ax2fwsKwt3xhXXxHzkpE

CommonJs 方式

下面是使用 ommonJs 方式引入 randomString 方法,用来生成随机字符串

const { randomString } = require('subayai-utils');

randomString(20); // ax2fwsKwt3xhXXxHzkpE

或者

const tquTool = require('subayai-utils');

tquTool.randomString(20); // ax2fwsKwt3xhXXxHzkpE

Keywords

vue

FAQs

Package last updated on 20 Feb 2023

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