Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-l3-app

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-l3-app - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

59

bin.js
#!/usr/bin/env Node
console.log('test');
const readline = require('readline');
const { spawn } = require('child_process');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
function getProjectName() {
return new Promise(resolve => {
rl.question('Project name: ', name => {
resolve(name);
});
});
}
function getWebPort() {
return new Promise(resolve => {
rl.question('Web server port: ', port => {
resolve(+port);
});
});
}
function getAPIPort() {
return new Promise(resolve => {
rl.question('API server port: ', port => {
resolve(+port);
});
});
}
function createProject(projectName) {
return new Promise(resolve => {
const process = spawn('bun', ['create', 'lukeb06/create-l3-app', projectName]);
process.stdout.on('data', data => {
console.log(data.toString());
});
process.stderr.on('data', data => {
console.log(data.toString());
});
process.on('close', code => {
resolve(code);
});
});
}
async function main() {
const projectName = await getProjectName();
const webPort = await getWebPort();
const apiPort = await getAPIPort();
await createProject(projectName);
}

2

package.json
{
"name": "create-l3-app",
"version": "1.0.0",
"version": "1.0.1",
"bin": {

@@ -5,0 +5,0 @@ "create-l3-app": "bin.js"

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