Skip to content

entrep0t/javascript-sdk

Repository files navigation

Entrepot

Entrepot SDK for Node & the browser ๐Ÿš€

Installation

yarn add entrepot-sdk

Optional dependencies

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.

Usage

import { setConfig, getProducts } from 'entrepot-sdk';

setConfig({ clientId: 'yourClientId' });
getProducts().then(products => console.log(products));

https://entrepot.dev/docs/sdk/javascript

IE Compatibility

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 * as entrepot from 'entrepot-sdk/dist/ie/entrepot.esm.js';

Please note that this build will probably add more than 150kb to your final bundle.

Contributing

Please check the CONTRIBUTING.md doc for contribution guidelines.

Development

Install dependencies:

yarn install

Run examples at http://localhost:62000/ with webpack dev server:

yarn serve

And test your code:

yarn test

License

This software is licensed under MIT.

Contributors

Ugo Stephant
Ugo Stephant
๐Ÿ’ป ๐Ÿ“– ๐Ÿ”ง

About

Entrepot SDK for Node & the browser ๐Ÿš€

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •