@naturalcycles/spreadsheet-lib
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@naturalcycles/spreadsheet-lib

CommonDB implementation backed by a Google Spreadsheet

npm code style: prettier

Example

// Setup SpreadsheetDB
const db = new SpreadsheetDB({
  gcpServiceAccount: {
    client_email: 'lalala@lololo.iam.gserviceaccount.com'
    private_key: 'verysecret',
  },
  spreadsheetId: '17meRABNrr4Pik9FF5HRQgRxxi4kjY2_dCHg3k2nqGGE',
})

// Use it as CommonDB
const items = await db.getByIds('TEST_TABLE', ['id1', 'id2'])
// ...

Readme

Keywords

none

Package Sidebar

Install

npm i @naturalcycles/spreadsheet-lib

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

25.6 kB

Total Files

8

Last publish

Collaborators

  • kirillgroshkov
  • kribor