1.0.0 • Published 8 years ago

halis-argv v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

halis-argv

Install

npm install halis-argv --save

Unit Tests

npm run test

Usage

Minimal usage:

const argv = require( 'halis-argv' );

// if you run a command like: "node ./src/argv.js hello world"
// here is the output you will get in argv
/*
	{ 
		args: [ 'hello', 'world' ],
		directory: '......./halis-argv/src',
		file: ''......./halis-argv/src/argv.js',
		program: '/usr/local/bin/node',
		command: '/usr/local/bin/node ......./halis-argv/src/argv.js hello world' 
	}
*/