Given a Node.js terminal application that reads commands fro…
Given a Node.js terminal application that reads commands from the command line to manage a MySQL database: Use the process object in Node.js to extract the command-line arguments from each of the terminal commands shown below. Parse the JSON argument using JSON.parse(). If parsing fails, return an empty object {} as a fallback. Write the correct extraction statements for each command. Assume that items is the table names and ADD is the operation name. Command 1: node app.js ‘{“name”:”Milk”,”price”:1.49,”stock”:30,”category”:”Dairy”}’ ADD item const operation = ; const tableName = ;const params = ;