Node.js module to format products

Usage no npm install needed!

<script type="module">
  import apoliticalCommonHelpersProducts from 'https://cdn.skypack.dev/@apolitical/common-helpers-products';


Common Helpers- Products

Node.js module to expose functionality to format products for use in our frontend.

Current function

  • matchStripeProduct
    • Read stripe products and returns the product that matches the product type passed in
  • formatStripeProductPrice
    • Formats stripe product price in a readable way