1.0.41 • Published 2 years ago
@superyou/utils-common v1.0.41
@superyou/common-utils
这是一个通用的utils包 你可以在任何能运行javascript的地方使用
安装
pnpm install @superyou/common-utils -S
使用
1. 在 Vue/React 中使用
import { getType } from "@superyou/utils-common"
const type = getType('str')
console.log(type) // -> string
2. 在 h5 / browser 中使用
复制dist文件夹下的utils-common.umd.js文件 引入现有的项目中
<script src="./script/utils-common.umd.js"></script>
<script>
const { getType } = utilsCommon
const type = getType('str')
const type = getType('str')
console.log(type) // -> string
</script>
3. 在 node 中使用
3.1 ESM模块规范
import { getType } from "@superyou/utils-common"
3.2 CJS模块规范
const { getType } = require("@superyou/utils-common")
1.0.41
2 years ago
1.0.40
2 years ago
1.0.38
2 years ago
1.0.37
2 years ago
1.0.36
2 years ago
1.0.35
2 years ago
1.0.34
2 years ago
1.0.33
2 years ago
1.0.31
2 years ago
1.0.30
2 years ago
1.0.29
2 years ago
1.0.20
2 years ago
1.0.19
2 years ago
1.0.18
2 years ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.10
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.0
2 years ago