Let’s create a Node CLI for generating files from templates!

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • create-files-from-template-cli

    A simple but powerful CLI to generate a list of files.

  • Note: This is not the whole app. I am explaining only some interesting parts of it. Check GitHub to see the code.

  • chalk

    🖍 Terminal string styling done right

  • To colorize my logs, I used a chalk package and created a logger utility:

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • jest

    Delightful JavaScript Testing.

  • jest and ts-jest – for testing,

  • cli-table

    Pretty unicode tables for the CLI with Node.JS

  • Another very useful and user-friendly command for CLI is the --help command. This command should help our users to use our CLI. This is the perfect place for tables. I installed the cli-table package.

  • esbuild

    An extremely fast bundler for the web

  • esbuild – is an easy-to-configure bundler,

  • Inquirer.js

    A collection of common interactive command line user interfaces.

  • We can easily achieve that with the inquirer package. This package allows you to ask different types of questions, such as input questions (open-text questions), confirmation questions (Yes/No), etc.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts