@araki-packages/fetch-all-spread-sheet
v3.0.0
Published
スプレッドシートを全権取得する
Downloads
35
Readme
fetch-all-spread-sheet
スプレッドシートを全権取得する
Example
import createGetAllSheet from '@araki-packages/fetch-all-spread-sheet';
import credential from './google-generated-creds.json';
const getSheet = createGetAllSheet('SpreadSheetID', credential);
interface ISheetName {
record: string;
record2: string;
};
const sheetData = getSheet<ISheetName>('sheet_name');
console.log(JSON.stringify(sheetData));
/**
*
* {
* key: '219391239',
* title: 'sheet_name
* value: [
* {
* record: 'foo',
* record2: 'bar',
* },
* //...
* ]
* }
*/