New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

create-tanstack-app

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-tanstack-app - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

33

index.js

@@ -1,10 +0,29 @@

#!/usr/bin/env node
const { exec } = require('child_process');
const degit = require('degit');
const path = require('path');
const fs = require('fs');
// Require the create.js script to handle the initialization
require('./create');
async function initApp() {
const projectName = process.argv[2] || 'my-tanstack-app'; // default to 'my-tanstack-app' if no name is provided
const dest = path.join(process.cwd(), projectName);
// If you want to call the script from `create.js` directly, you can also define it here.
// If needed, you could also provide further customization options for users or more handling.
// Check if the destination already exists
if (fs.existsSync(dest)) {
console.log('Directory already exists. Please choose another name or delete the existing directory.');
return;
}
console.log(`Downloading Tanstack app template from GitHub...`);
// Use degit to download the template
const emitter = degit('SH20RAJ/tanstack-start', { cache: false, force: true });
emitter.on('info', info => console.log(info));
try {
await emitter.clone(dest);
console.log(`Template successfully downloaded! Navigate to ${dest} and start working on your project.`);
} catch (error) {
console.error('Error during template download:', error);
}
}
initApp();
{
"name": "create-tanstack-app",
"version": "1.0.1",
"main": "index.js",
"scripts": {
"create": "node create.js"
},
"author": "",
"license": "ISC",
"description": "A CLI tool to create a Tanstack app",
"dependencies": {
"degit": "^2.8.4"
}
}
"name": "create-tanstack-app",
"version": "1.0.2",
"main": "index.js",
"bin": {
"create-gi": "./index.js"
},
"author": "sh20raj",
"license": "ISC",
"description": "A CLI tool to create a Tanstack app",
"dependencies": {
"degit": "^2.8.4"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc