šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
DemoInstallSign in
Socket

@chec/gatsby-source-chec

Package Overview
Dependencies
Maintainers
6
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chec/gatsby-source-chec

Source Chec commerce data for your Gatsby store.

1.3.0
latest
Source
npm
Version published
Weekly downloads
5
-50%
Maintainers
6
Weekly downloads
Ā 
Created
Source

@chec/gatsby-source-chec

šŸ› Gatsby plugin for sourcing products, categories and merchant info from your Chec store

Install

yarn add @chec/gatsby-source-chec # npm install @chec/gatsby-source-chec

Config

// In your gatsby-config.js
plugins: [
  {
    resolve: `@chec/gatsby-source-chec`,
    options: {
      publicKey: '...',
      downloadImageAssets: true, // false by default
    },
  },
];

Usage

{
  checMerchant {
    id
    business_name
  }

  allChecCategory {
    nodes {
      name
      slug
      description
      created
      id
    }
  }

  allChecProduct {
    nodes {
      id
      name
      price {
        formatted_with_symbol
      }
    }
  }
}

Downloading image assets

This plugin provides you the option to download product asset images, and cache them in your Gatsby project. This works great with gatsby-image.

Add downloadImageAssets: true to your plugin options.

These assets will be added as images to the ChecProduct nodes.

Keywords

gatsby

FAQs

Package last updated on 28 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts