Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const newPageName = args[0];
const options = {
displayName: args[1],
templateFlavor: appFlavor
}
const appPath = args[3];
tns.nsStarterKitsApplicationService.addPage(newPageName, options, appPath, "next")
.then(function(details){
console.log('Details=== ', details)
})
.catch(function(err){
console.error('Error=== ', err)
})
};
Promise.all(tns.extensibilityService.loadExtensions())
.then(pageAction, pageAction);