@tqu/tool
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

快速上手

安装

通过 npm 安装

# npm
npm install @tqu/tool

# yarn
yarn add @tqu/tool

# pnpm 🔥
pnpm add @tqu/tool

通过 CDN 安装

使用 @tqu/tool 最简单的方法是直接在 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>

引入方法

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

import { randomString } from '@tqu/tool';

randomString(20); // ax2fwsKwt3xhXXxHzkpE

Readme

Keywords

none

Package Sidebar

Install

npm i @tqu/tool

Weekly Downloads

4

Version

1.0.2

License

Apache-2.0

Unpacked Size

133 kB

Total Files

11

Last publish

Collaborators

  • qq449245884