npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

wbb-spreadsheet-integration

v0.0.3

Published

This project allows you to easily integrate with Google Spreadsheet to fetch and store information in a google sheet.

Downloads

3

Readme

WBB Spreadsheet Integration

This project allows you to easily integrate with Google Spreadsheet to fetch and store information in a google sheet.

Setup

To use this integration you will need a GCP Service Account. This allows the service account to read and write to spreedsheats. You will also need to have Google Sheets API enabled.

Blocks Provided

This integration provides the following blocks under the topic of Google-Spreadsheet.

  • Save to Google Sheets - Pre-defined function block to start using save-data handler
  • Fetch from Google Sheets - Pre-defined function block to start using get-data handler
  • No Credentials set - when the required settings have not been provided.
  • No Spreadsheet ID Set - when the required settings have not been provided.
  • No Key Column Name Set - when the required settings have not been provided.
  • No Value Property Name Set - when the required settings have not been provided.
  • No Return String Set - when the required settings have not been provided.

Handler Names

The following handler names and their functions are available :

| Handler Name | Purpose | | ------------ | ---------------------------------------------------------------------------------- | | save-data | It will save data to a spreadsheet from any form attached with this function block | | get-data | Return form values from a spreadsheet based on a give parameter |

Configuration Options

Within the function there are a number of options that can be set to configure the behaviour of the integration. The tables below show the settings that are available for each handler.

save-data

| Property | Required | Description | | ----------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------ | | credentials.clientEmail | true | The client_email property copied from JSON Service Account credentials for an account that has access to google spreadsheet. | | credentials.privateKey | true | The private_key property copied from JSON Service Account credentials for an account that has access to google spreadsheet. | | spreadsheetID | true | A spreadsheetID is the long id in the sheets URL. | | confirmationBlock | true | The block to send the user to after completing the form. | | saveUserId | false | Set param to true if you want to save user _id alongside other data. |

get-data

| Property | Required | Description | | ----------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | credentials.clientEmail | true | The client_email property copied from JSON Service Account credentials for an account that has access to google spreadsheet. | | credentials.privateKey | true | The private_key property copied from JSON Service Account credentials for an account that has access to google spreadsheet. | | spreadsheetID | true | A spreadsheetID is the long id in the sheets URL. | | sheetIndex | false | The index of the tab to fetch data from. Index starts at zero. | | keyColumnName | true | Column name from the spreadsheet that form value will be matched against | | valuePropertyName | true | Form question title name which value will be used to match the requested row | | returnString | true | Text user will be sent after the right row is matched with other form values, e.g. Your order number, %%orderNumber%% will be delivered on %%expectedDeliveryDate%%. | | notFoundDataBlock | true | The block to send the user if no data is found. |