Skip to content

wuhan2020/shimo-sheet2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 类型转换

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published