1.0.1 • Published 3 years ago
get-google-sheet v1.0.1
get-google-sheet
When you just need to get a public google sheet as JSON
📖 Table of Contents
⚙️ Install
Install the package locally within you project folder with your package manager:
With npm:
npm install get-google-sheetWith yarn:
yarn add get-google-sheetWith pnpm:
pnpm add get-google-sheet📖 Usage
- Create a Google sheet.
- Share the sheet with public viewer access.
- Copy the sheet ID from the shared URL and the Sheet name e.g:
Scl-AmSE11UHGqOAGs6TmgDpWPm-7Zob9mIb5vq_kb0andSheet1. - Perform the request:
import { getGoogleSheet } from "get-google-sheet";
export const SHEET_ID = "SHEET_ID";
export const SHEET_NAME = "SHEET_NAME";
const result = await getGoogleSheet(SHEET_ID, SHEET_NAME);
console.log(result);📚 API
For all configuration options, please see the API docs.
💬 Contributing
Got an idea for a new feature? Found a bug? Contributions are welcome! Please open up an issue or make a pull request.