npm.io
0.1.0 • Published 12 years ago

terminal-parser

Licence
—
Version
0.1.0
Deps
0
Vulns
0
Weekly
0

Terminal Parser

Build Status

A terminal utility that its sole objective is to parse terminal-like arguments.

Its functionality is super simple to describe.

It turns this ['--environment=development', '--mode=2'] to {environment: 'development', 'mode': '2'}

How to use

Install from npm

npm install terminal-parser --save

Include it in your project

var Terminal = require('terminal-parser');

Start parsing arguments

var args = Terminal.parseArgs(['--environment=development', '--mode=2']);

Keywords