Quickstart
- Install:
bash
npm install holysheets
bash
yarn add holysheets
bash
pnpm install holysheets
Authenticate with Google APIs (using a Service Account or OAuth).
Initialize HolySheets!:
Typescript
import HolySheets from 'holysheets'
const sheets = new HolySheets({
spreadsheetId: 'YOUR_SPREADSHEET_ID',
auth: yourAuthClient
})
const users = sheets.base<{ name: string; email: string }>('Users')
- Perform Operations:
Typescript
await users.insert({ data: [{ name: 'Alice', email: 'alice@example.com' }] })
const found = await users.findMany({ where: { name: { equals: 'Alice' } } })
console.log(found.data)
Check out the guides and concepts sections for deeper explanations.