module to create package.xml file for salesforce
npm install packagesf
To create the package.xml file, import the module, and then run the function createPackage().This will create a package.xml file in the folder where you ran the command.