Displaying 1 to 20 from 27 results

minimist - parse argument options

  •    Javascript

This module is the guts of optimist's argument parser without all the fanciful decoration.Return an argument object argv populated with the array arguments from args.

sade - Smooth (CLI) Operator 🎶

  •    Javascript

Define your global/program-wide version, options, description, and/or examples first. Once you define a Command, you can't access the global-scope again. Define all commands & options in the order that you want them to appear. Sade will not mutate or sort your CLI for you. Global options print before local options.

args - Toolkit for building command line interfaces

  •    Javascript

This package makes creating command line interfaces a breeze. Register a new option for the binary in which it's being called.




getopts - Node.js CLI arguments parser

  •    Javascript

Getopts is a Node.js CLI arguments parser. It's designed closely following the Utility Syntax Guidelines so that your programs behave like typical UNIX utilities effortlessly and without sacrificing developer experience. Use getopts to parse the command-line arguments passed to your program.

v8-argv - Proxy v8 argv (including harmony) to v8/node while forwarding the remaining arguments to a custom script

  •    Javascript

Proxy v8 argv (including harmony) to v8/node while forwarding the remaining arguments to a custom script.v8-argv is available on npm.

argvments - Parse command line arguments

  •    Javascript

If you're looking to use this in a CLI app, you probably want meow instead.Arguments to parse.


aliases - Parse flag aliases in CLI help output

  •    Javascript

The result can be passed directly to the minimist alias option or used in meow with some effort.CLI help output.

node-figc - Merge config files with command-line arguments

  •    Javascript

Merge config files with command-line arguments.Load a json configuration from configFile and merge its contents with argv which will be parsed by optimist.

argh - argh is a extremely light weight option/argument/process

  •    Javascript

argh is an extremely light weight options or process.argv parser for node.js. It only includes the bare minimal to parse options. It's not a full blown cli library, but it can be used as a dependency of a cli library to do all the heavy lifting. argh was born out of rage, every cli library that we've found did more than they advertised and added unneeded bloat to what we were trying to achieve... and that was argument parsing. Tiny modules should only focus on one thing and do that one thing really well.

dynamic-config - Loads configuration files depending on the given env

  •    Javascript

Expects a .js file as config so you can add dynamic content. Define which env should be set as default.

spawn-args - Turn a string of command line options into an array for child_process.spawn

  •    Javascript

Turn a string of command line options into an array for child_process.spawn

realist - Micro framework for developing command line apps

  •    Javascript

Micro framework for developing command line apps. option <option name> - if option was specified.

node-readcommand - An extension to node.js readline that reads and parses multi-line shell commands

  •    Javascript

A utility that wraps the built-in node.js readline functionality to parse multi-line shell commands. This module was extracted from work that was bloating in node-corporal, a utility that makes building CLI apps FUN. This is the most simple example, reading a command from a user in your interactive shell, and parsing it into an arguments array like process.argv, then printing it to the console.

command-line-args - A mature, feature-complete library to parse command-line options.

  •    Javascript

A mature, feature-complete library to parse command-line options. To access the values, first create a list of option definitions describing the options your application accepts. The type property is a setter function (the value supplied is passed through this), giving you full control over the value received.

command-line-commands - Add a git-like command interface to your app.

  •    Javascript

A lightweight module to help build a git-like command interface for your app. Its job is to extract the command (the first argument, unless it's an option), check it's valid and either return it or throw. From there, you can parse the remaining args using your preferred option parser (e.g. command-line-args, minimist etc.).

node-argv-split - Split argv(argument vector) and handle special cases.

  •    Javascript

Split argv(argument vector) and handle special cases, such as quoted or escaped values. Splits a string, and balance quoted parts. The usage is quite simple, see examples above.

argv

  •    Go

Argv is a library for Go to split command line string into arguments array. MIT.