0.1.1 • Published 5 years ago

@linjiazhi/googlesheet-helper v0.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

googleAPI 的 promise 封装

  • 获取在线 google sheet 文档的内容 返回选定的表格的二维数组, 返回字符串为 google 报错

安装

npm i --save-dev googlesheet-helper

使用

googleSheetHelper({
  sheetId: '',// 源码内已预设了一个
  table: 'hago-dressup'
}).then((data) => {
  console.log('data', data)
}).catch()

参数

sheetId:google链接中的hash串

table:要获取数据的表格

npm.io

返回

按照每一行进行返回

[
	['xxx', 'xxxx'],// 第一行数据
	['ttt', 'tttt']// 第二行数据
]
0.1.1

5 years ago

0.1.0

5 years ago