@nuskin/ns-product

Nu Skin's product presentation javascript api's dealing with products.

Usage no npm install needed!

<script type="module">
  import nuskinNsProduct from 'https://cdn.skypack.dev/@nuskin/ns-product';
</script>

README

@nuskin/ns-product

Nu Skin's product presentation javascript api's dealing with products.

Installing

Usng npm:

npm add @nuskin/ns-product

Usng yarn:

yarn add @nuskin/ns-product

Example usage

const { popularProductsService } = require('@nuskin/ns-product')

let popularProducts = await popularProductsService.getPopularProducts("US");
for(const popularProduct of popularProducts) {
    console.log(`sku: ${popularProduct.sku}, title: ${popularProduct.title}`);
}

Resources

  • Changelog could go here

License

MIT