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

@dreamonkey/cli-ghostwriter

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dreamonkey/cli-ghostwriter

Execute a command providing a preset of question-answer pairs, the package will fill in the answers for you

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

@dreamonkey/cli-ghostwriter

Execute a CLI command providing a preset of question-answer pairs, the package will take over and fill in the answers for you

Installation

$ npm install @dreamonkey/cli-ghostwriter
# or
$ yarn add @dreamonkey/cli-ghostwriter
# or
$ pnpm install @dreamonkey/cli-ghostwriter

Usage

import {
  ACCEPT_DEFAULT,
  cliCreate,
  DOWN_KEY,
  WHITESPACE_KEY,
} from "@dreamonkey/cli-ghostwriter";

const answersMap: Record<string, string | undefined> = {
  "What would you like to build?": ACCEPT_DEFAULT, // App
  "Project folder": "my-project-folder",
  "Remove existing files and continue?": "y",
  "Pick Quasar version": ACCEPT_DEFAULT, // Qv2
  "Pick script type": DOWN_KEY, // TypeScript
  "Pick Quasar App CLI variant": ACCEPT_DEFAULT, // Webpack
  "Package name": "my-project",
  "Project product name": "My Project",
  "Project description": "",
  Author: ACCEPT_DEFAULT,
  "Pick a Vue component style": DOWN_KEY, // composition-setup
  "Pick your CSS preprocessor": ACCEPT_DEFAULT, // SCSS
  "Check the features needed for your project": `${DOWN_KEY}${WHITESPACE_KEY}${DOWN_KEY}${DOWN_KEY}${WHITESPACE_KEY}`, // checks: ESLint (default), Pinia, Axios
  "Pick an ESLint preset": ACCEPT_DEFAULT, // prettier
  "Install project dependencies?": DOWN_KEY, // No
};

await cliGhostwriter({
  command: "pnpm create quasar",
  answersMap,
  endingMarker: "Enjoy! - Quasar Team",
  // enableLogs: true
});

FAQs

Package last updated on 07 Oct 2022

Did you know?

Socket

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.

Install

Related posts

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