# xlsx2ts **Repository Path**: wangpengli/xlsx2ts ## Basic Information - **Project Name**: xlsx2ts - **Description**: xlsx导出json 并生成typescript对应的interface供项目开发使用 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-07-30 - **Last Updated**: 2021-08-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # xlsx2ts ## Nasus 1. excel文件格式限制 - 第一行为导出表的唯一id - 第二行为导出平台,支持client/server/all三种模式 - 第三行为导出类型,本工具为支持typescript项目,导出为interface,也可自行拓展为c#等语言需要等类型 2. .xlsx拓展名的配置文件需都放置在excel目录下 3. 项目转换完成后会输出至build目录下 4. test/configManager.ts为使用生成的interface的demo ## 使用步骤 1. 安装依赖 ```bash npm i --save-dev ``` 2. 导出配置json及interface ```bash npm run start ``` 3. 测试配置 ```bash npm run useconfig ```