Some common used 3rd party packages for node cli app

Some 3rd party packages:

  • inquirer : A collection of common interactive command line user interfaces.
  • ora: Elegant terminal spinner.
  • chalk:Terminal string styling done right.
  • find-up: Find a file or directory by walking up parent directories.
  • semver:  The semantic versioner for npm.
  • ssri:  `ssri` short for Standard Subresource Integrity, is a Node.js utility for parsing, manipulating, serializing, generating, and verifying Subresource Integrity hashes.

Some other packages recommended:

  • colors: It help to set color and style in your node.js console.
  • kleur: The fastest Node.js library for formatting terminal text with ANSI colors~!
  • ink: React for CLIs. Build and test your CLI output using components.
  • figlet: This project aims to fully implement the FIGfont spec in JavaScript. It works in the browser and with Node.js.
  • debug: A tiny JavaScript debugging utility modelled after Node.js core's debugging technique. Works in Node.js and web browsers.
  • prompts: Lightweight, beautiful and user-friendly interactive prompts.
  • commander: The complete solution for node.js command-line interfaces, inspired by Ruby's commander.
  • yargs: Yargs helps you build interactive command line tools, by parsing arguments and generating an elegant user interface. 
  • arg: is yet another command line option parser.
  • meow: CLI app helper, a lot of features to help on CLI app.
  • ansi-escapesANSI escape codes for manipulating the terminal.
  • cli-truncate: Truncate a string to a specific width in the terminal
  • clui: This is a Node.js toolkit for quickly building nice looking command line interfaces which can respond to changing terminal sizes.

作者:FlyDragon

出处:http://www.cnblogs.com/fly_dragon/

关于作者:专注于微软平台项目架构、管理和企业解决方案。如有问题或建议,请多多赐教!

本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,如有问题,可以通malun666@126.com 联系我,非常感谢。

posted @ 2020-10-02 12:03  FlyDragon  阅读(140)  评论(0编辑  收藏  举报