Entrepot SDK for Node & the browser 🚀
yarn add entrepot-sdk
As this sdk relies on fetch, we added isomorphic-fetch as an optional dependency and strongly suggest adding it to your project or polyfill the fetch utility using your own method if necessary.
import{setConfig,getProducts}from'entrepot-sdk';setConfig({clientId: 'yourClientId'});getProducts().then(products=>console.log(products));https://entrepot.dev/docs/sdk/javascript
As part of a global effort to deprecate Internet Explorer, we decided not to include IE polyfills by default. You can still manually import a version containing all the necessary polyfills for IE >= 11:
import*asentrepotfrom'entrepot-sdk/dist/ie/entrepot.esm.js';Please note that this build will probably add more than 150kb to your final bundle.
Please check the CONTRIBUTING.md doc for contribution guidelines.
Install dependencies:
yarn installRun examples at http://localhost:62000/ with webpack dev server:
yarn serveAnd test your code:
yarn testThis software is licensed under MIT.
Ugo Stephant 💻📖 🔧 |
|---|