UNPKG

node-magento2

Version:

Node JS library to connect to magento 2 API using promises

19 lines (16 loc) 407 B
/** * Magento 2 Promise API library * File: lib/catalog.js * We need to define "use strict", so we're doing it here. */ "use strict"; /** * Continue with the main functionality. */ module.exports = function(service) { return { product: require('./catalog/product')(service), category: require('./catalog/category')(service), stockItem: require('./catalog/stockItem')(service) } }