7 steps to master AWS CDK
Step 1. Download this
const skuListFilePath=’./inventory/dsz_sku_list.csv’
const asinListFilePath=’./inventory/AmazonASIN.csv’
const csv = require(‘csvtojson’)
const CalculateRRP = require(‘./utils/CalculateRRP’)
const ASIN = ‘B07YMLMQJC’
const generateRRP = async (asin) => {
let asinList = await csv().fromFile(asinListFilePath)
let SKU
let cost
let RRP
for (let a of asinList) {
if (a.ASIN === asin) {
SKU = a.SKU
}
}
if (!SKU) {
return console.error(`Cannot find the SKU for ${asin} in AmazonASIN.csv file`)
}