Wrapper for the Shopify's Storefront API.
npm install shopify-storefrontWrapper for the Shopify's Storefront API.
``shellWith npm:
npm install shopify-storefront
📚 Usage
$3
`javascript
import { ShopifyClient } from 'shopify-storefront';// Initialize client.
const shopify = new ShopifyClient({
accessToken: process.env['SHOPIFY_ACCESS_TOKEN'] as string,
storeDomain: process.env['SHOPIFY_STORE_DOMAIN'] as string,
});
// Get shop data.
shopify.shop.getShop()
.then(console.log);
`$3
`javascript
// If uses require function you will need to use .default
// For import in typescript, this is not required
const { ShopifyClient } = require('shopify-storefront').default;
``- [] Checkout
- [x] createCheckout
- [] Products
- [x] product
- [x] products
- [] Shop
- [x] shop
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Or buy me a coffeelatte 🙌🏾