Skip to content

Utility for interpreting arguments provided to a NodeJS app

Notifications You must be signed in to change notification settings

or9/ara-cli-options

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purpose

To read command line arguments provided to a Node application.

Usage

Various options provided below should illustrate acceptable patterns.

const options = require(“cli-options”);
const FILE_LOCATION = options(“location”, "-location", "--location", "-l") || “./someDefaultLocation/“;
const EXEC_STYLE = options(“--style”, "-s", "sssssss") || “def style”;

Do not provide an = in between arguments and their values. This module requires that there is no equal sign separating an argument and its value.

About

Utility for interpreting arguments provided to a NodeJS app

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published