const ae = require('@aspose/email');
// The load method will load the source MSG file. 
const msg= new ae.MailMessage.load("Message.msg");
// Invoke the save method to convert the MSG to PST. 
msg.save("output.PST");
console.log('MSG file converted to PST successfully!');