0.1.3 • Published 4 years ago

@pyramid-kit/node-util v0.1.3

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

@pyramid-kit/node-util`

esm编译: 不需要改动

babel编译: 需要在 tsconfig.json 增加 "skipLibCheck": true

打包

方式一(单独打包): 在包目录下执行 father build 
方式二(所有打包): 在项目根目录下执行 father build,使用该方法打包会多生成一份 esm 编译的 dist 目录

使用

commonJS

const nodeUtil = require('@pyramid-kit/node-util');

// 杀端口
nodeUtil.killPort(80, (resultCode) => {
});

// 获取目录树
const trees = nodeUtil.visitCatalogTree('');

es6

import {killPort, visitCatalogTree} from '@pyramid-kit/node-util';

// 杀端口
killPort(80, (resultCode) => {
});

// 获取目录树
const trees = visitCatalogTree('');
0.1.3

4 years ago

0.1.2

4 years ago

0.1.0

4 years ago

0.1.1

4 years ago

0.0.3

4 years ago

0.0.4

4 years ago

0.0.6

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago