npm.io
2.1.4 • Published 3 years ago

ne-eppc

Licence
ISC
Version
2.1.4
Deps
1
Size
6 kB
Vulns
0
Weekly
0

ne-eppc

This is a JavaScript package for fetching products from Elastic Path Commerce Cloud using the Moltin JS SDK.

Installation

To install this package, run:

pnpm install ne-eppc

Usage

To use this package, you will need to provide your Elastic Path client ID and host in a .env file at the root of your project. The .env file should contain the following variables:

EPCC_CLIENT_ID= EPCC_HOST=

Then, you can import the fetchProducts function from the ne-eppc package and use it to fetch products from Elastic Path:

import { fetchProducts } from "ne-eppc";

async function getProducts() {
  const products = await fetchProducts();
  console.log(products);
}

License

This project is licensed under the MIT license.