You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

803 B

@haina/npm

可复用的 npm 模块
支持 ESM(import) 和 CommonJS(require)

📦 Installation

# 安装整个包
npm install http://xxxx/npm/haina-npm-0.1.0.tgz

# 安装单个模块
npm install http://xxxx/npm/utils-0.1.0.tgz

 # 安装Utils的子模块
npm install http://xxxx/npm/utils-commons-0.1.0.tgz

🚀 Usage

// Import everything
import { commons, request } from '@haina/npm';
// Import only common utilities
import { isEmpty } from '@haina/npm/esm/utils/commons.js';
// Import only request utilities
import { fetchJSON } from '@haina/npm/esm/utils/request.js';

// Import only common utilities
import { isEmpty } from '@haina/utils-commons';

// Import only common utilities
import { commons } from '@haina/utils';