ne-eppc
v2.1.4
Published
A package to fetch products from Elastic Path Commerce Cloud using the Moltin JavaScript SDK
Downloads
4
Readme
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.