
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
nativescript-starter-kits
Advanced tools
A NativeScript CLI extension for managing templates
You can install this extension using the Nativescript CLI
$ tns extension install nativescript-starter-kits
Download the GIT repository in you favorite projects directory
$ git clone git@github.com:NativeScript/nativescript-starter-kits.git
Run the following commands to install all dependencies, transpile all Ts files and to pack the extension.
$ npm i --ignore-scripts
$ npm i -g grunt-cli (only in case you do not have it installed globally)
$ grunt
$ grunt pack
These commands will create a .tgz file in the extension folder
Install the npm package
$ tns extension install <path to nativescript-starter-kits>.tgz
Get proper nativescript
reference
const pathToPackage = require("global-modules-path").getPath("nativescript", "tns");
const tns = require(pathToPackage);
Load all available extensions
/**
* @name loadExtensions
* @description Loads all currently installed extensions
* @return {Promise<any>[]} - On Success: Array of Promises, one for each installed extension
*/
Promise.all(tns.extensibilityService.loadExtensions()).then((loadedExtensions) => {
console.log("All extensions loaded successfully!");
}).catch((error) => {
console.error(error);
});
/**
* @name getTemplates
* @description List all available templates
* @return {Promise<Array<any>>} - On Success: Array of Objects with Details about each template
*/
tns.templateService.getTemplates().then((templates) => {
console.log(templates);
}).catch((error) => {
console.error(error);
});
/**
* @name getAppTemplateDetails
* @description The method returns details about a single app template.
* @param {string} templateName - The name of the template
* @returns {Promise<any>} - Object with details about the app template
*/
getAppTemplateDetails(templateName: string): any;
tns.templateService.getAppTemplateDetails("templateName").then((details) => {
console.log(details);
}).catch((error) => {
console.error(error);
});
Before running the test you need to transpile all files and dependencies.
$ grunt pack
$ npm run test
If you have found an issue with this extension, please report the problem in the Issues section.
FAQs
CLI extension for the NatvieScript CLI
The npm package nativescript-starter-kits receives a total of 90 weekly downloads. As such, nativescript-starter-kits popularity was classified as not popular.
We found that nativescript-starter-kits demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.