wuhan2020 / shimo-sheet2json

石墨文档表单类型到 JSON 类型转换

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shimo 表格获取工具

该项目为石墨表格获取工具,使用用户名密码验证,并获取特定表格所有内容,返回指定 json 格式。

安装

npm install -s shimo-sheet2json

使用

const client = new ShimoSheetFetcher({
  username: 'username',
  password: 'password',
  clientId: 'clientId',
  clientSecret: 'clientSecret'
});
const fileContent = await client.getFileData({
  guid: 'sheetId',
  sheetName: '工作表1',
  skipHead: 1,
  columns: [{
    name: 'name'
  }, {
    name: 'area'
  }, {
    name: 'time'
  }, {
    name: 'link'
  }, {
    name: 'remark'
  }]
});

License

MIT

About

石墨文档表单类型到 JSON 类型转换

License:MIT License


Languages

Language:TypeScript 100.0%