CLI tool for scaffolding JavaScript and TypeScript third-party libraries with modern development practices
—
Pending
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Pending
The risk profile of this skill
Comprehensive prompt-based configuration system for collecting project metadata and user preferences during project creation via CLI commands.
The CLI automatically triggers interactive prompts to collect missing project configuration when creating new projects.
# When running: jslib new [projectname]
# The CLI prompts for any missing information:
# Project Name Prompt
project name: [default: projectname]
# NPM Package Name Prompt (with validation)
npm package name: [default: projectname]
# UMD Name Prompt
UMD name for package: [default: projectname]
# GitHub Username Prompt
github user name: [required]
# Template Type Selection
select template:
❯ JavaScript
TypeScript
# Package Manager Selection
package manager:
❯ npm
no installThe CLI presents interactive prompts with the following behavior:
The prompt system is intelligent about what questions to ask:
Each prompt includes specific validation:
validate-npm-package-name library@company/package)# Full interactive mode (all prompts)
npx @js-lib/cli new
# Partial interactive mode (skip username prompt)
npx @js-lib/cli new my-lib --username johndoe
# Minimal interactive mode (only template type prompt)
npx @js-lib/cli new my-lib --npmname @company/my-lib --username johndoe --umdname MyLibThe system is built on the Inquirer.js library, providing:
The prompt system handles various error conditions: