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

@browserbasehq/bb9

Package Overview
Dependencies
Maintainers
0
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@browserbasehq/bb9 - npm Package Compare versions

Comparing version 1.0.16 to 1.0.17

48

dist/index.js

@@ -12,2 +12,3 @@ #!/usr/bin/env node

import { program } from "commander";
import inquirer from "inquirer";
import fs from "fs/promises";

@@ -20,2 +21,41 @@ import path from "path";

import { readFileSync } from "fs";
function promptForOptions() {
return __awaiter(this, void 0, void 0, function* () {
const answers = yield inquirer.prompt([
{
type: "list",
name: "template",
message: "Which template would you like to use?",
choices: ["react", "node"],
default: "react",
},
{
type: "confirm",
name: "typescript",
message: "Would you like to use TypeScript?",
default: true,
},
{
type: "confirm",
name: "tailwind",
message: "Would you like to use Tailwind CSS?",
default: false,
when: (answers) => answers.template === "react", // Only ask for React projects
},
{
type: "confirm",
name: "eslint",
message: "Would you like to use ESLint?",
default: true,
},
{
type: "confirm",
name: "git",
message: "Initialize a git repository?",
default: true,
},
]);
return answers;
});
}
function createProjectStructure(projectPath, projectName, options) {

@@ -62,9 +102,7 @@ return __awaiter(this, void 0, void 0, function* () {

.argument("<project-name>", "Name of the project")
.option("-t, --template <type>", "project template type (react, node)", "react")
.option("--git", "initialize git repository", true)
.action((projectName, options) => __awaiter(void 0, void 0, void 0, function* () {
.action((projectName) => __awaiter(void 0, void 0, void 0, function* () {
try {
const projectPath = path.join(process.cwd(), projectName);
// Force typescript to true since this is a TypeScript template
options.typescript = true;
// Get options through interactive prompts
const options = yield promptForOptions();
yield createProjectStructure(projectPath, projectName, options);

@@ -71,0 +109,0 @@ console.log(chalk.green(`🤘 Successfully created new Stagehand project: "${projectName}"`));

3

package.json
{
"name": "@browserbasehq/bb9",
"version": "1.0.16",
"version": "1.0.17",
"description": "",

@@ -13,2 +13,3 @@ "main": "index.js",

"commander": "^12.1.0",
"inquirer": "^12.2.0",
"path": "^0.12.7",

@@ -15,0 +16,0 @@ "typescript": "^5.7.2"

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