1.0.2 • Published 11 months ago

@tqu/tool v1.0.2

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
11 months ago

快速上手

安装

通过 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
1.0.2

11 months ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.0-beta.0

1 year ago