0.0.23 • Published 4 years ago

@zhijianren/node-cli v0.0.23

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

node-excel

介绍

node 命令行工具

安装

npm install @zhijianren/node-cli -g

使用

把数据导入 excel 文件

node-cli export [sourceFile...] -f filename -c config.json

  • filename 导出生成的文件名
  • sourceFile 数据源文件,支持jsjson文件,支持文件夹(不支持递归文件夹)
  • config.json 配置文件
    {
      "input": {
        "headers": ["序号", "字段名", "中文", "英文"]
      },
      "output": {
        "path": "./",
        "filename": "test"
      }
    }

把数据从 excel 中导出到 ts 或 js 文件

node-cli import [sourceFile] -t type -c config -o output

  • sourceFile 数据源文件,excel 文件
  • type 导出文件类型,默认为 js 文件,支持 ts 类型
  • output 输出文件路径
  • config 导出数据配置文件
{
  "object": {
    "key": 1, // 对象 key 取值列
    "value": 2 // 对象值取值列
  },
  "start": 1, // 数据开始行
  "defaultValue": ""
}

mac 上根据端口 kill 对应类型进程

node-cli port [port] -t type -p pid

  • port 占用端口
  • type 协议类型,默认为 tcp 占用端口
  • pid 进程类型,默认为 node

用模板创建项目

node-cli project [pathname]

  • pathname 项目相对当前命令运行的相对路径
0.0.21

4 years ago

0.0.22

4 years ago

0.0.23

4 years ago

0.0.20

4 years ago

0.0.20-3

4 years ago

0.0.20-2

4 years ago

0.0.19

4 years ago

0.0.20-0

4 years ago

0.0.20-1

4 years ago

0.0.19-2

4 years ago

0.0.19-1

4 years ago

0.0.19-0

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.11

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.3

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago