You should add these line codes to your main javascript file in order to use package
constwarehouse=newYourBase(/*filename*/);//You need several variables to run the program on the terminalconstcomand=process.argv[2];constname=process.argv[3];constcount=process.argv[4];//write codeif(comand==="dash"){//you use the warehouse dash method warehouse.dash(0)/* This function takes two different numbers as arguments 0 and 1 Returns the products in the database if you enter 0 If you enter 1, it returns the products sold from the database */}elseif(comand==='--dep'){warehouse.dep(/*productName*/,/*count*/);// This function accepts two arguments. ProductName and count. }elseif(comand==="-sell"){warehouse.sell(/*productName*/,/*count*/)}