Node 命令行应用框架 Vorpal

码农软件 · 软件分类 · Node.js 扩展 · 2019-04-14 10:14:15

软件介绍

Vorpal 是一个 Node 用来构建 CLI 命令行应用的框架。提供简单但强大的 API。

功能包括:

  • 简单强大的命令创建

  • 支持可选参数、必选参数和可变参数

  • 管道命令

  • 可持久化保持命令行历史记录

  • 内建帮助

  • 内建对 Tab 自动完成的支持

  • 命令行参数自动完成

  • 可定制的提示信息

  • 可扩展的终端控制

  • 可定制的事件侦听

示例代码:

var vorpal = require('vorpal')();

vorpal
  .command('foo', 'Outputs "bar"')
  .action(function(args, callback) {
    this.log('bar');
    callback();
  });

vorpal
  .delimiter('myapp$')
  .show();

本文地址:https://codercto.com/soft/d/3549.html

Thirty-three Miniatures

Thirty-three Miniatures

Jiří Matoušek / American Mathematical Socity / 2010-6-18 / USD 24.60

This volume contains a collection of clever mathematical applications of linear algebra, mainly in combinatorics, geometry, and algorithms. Each chapter covers a single main result with motivation and......一起来看看 《Thirty-three Miniatures》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

html转js在线工具
html转js在线工具

html转js在线工具