Some utility functions to use with the WooCommerce API and NodeJS