get-all-bc-products
v1.0.0
Published
Gets all the products from Bigcommerce and returns them as a single array of products
Downloads
5
Readme
Get All Products From Bigcommerce
getAllProducts is a function that will recursively grab all of the products from Bigcommerce and return them as a single array of products.
Installation
First, you need to run
npm install get-all-bc-products
Example
import { getAllBCProducts } from 'get-all-bc-products';
require('dotenv').config();
getAllBCProducts().then(console.log).catch(console.error);
Note
This package requires that you have an ENV file that contains STORE_HASH and STOREFRONT_API_TOKEN keys. You can get the values for these from your Bigcommerce dashboard and API Token settings.