kso-util
v2.0.10
Published
工具类库
Downloads
15
Readme
安装
npm i kso-util -S
使用
es module 按需引入 🚀
import { isObject } from 'kso-util'
isObject({})
commonjs引入
const { isObject } = require("kso-util");
// const _k = require("kso-util");
console.log(isObject({}));
script引入
<!-- min包 -->
<script src="https://unpkg.com/[email protected]/dist/kso-util.min.js"></script>
<!-- 非min包 -->
<!-- <script src="https://unpkg.com/[email protected]/dist/kso-util.js"></script> -->
<!-- 单个引入 -->
<script src="https://unpkg.com/[email protected]/dist/isObject.js"></script>
<script>
console.log(_k);
console.log(isObject({}));
</script>
构建
npm run build // 启动所有构建脚本,构建前清空dist
npm run build:min // 构建min包
npm run build:every // 构建min 独立包
npm run build:es // 构建独立es包
npm run test // 单测
npm发版
- 修改
package.json
中的version
- 发布
npm publish