1.1.0 • Published 5 years ago

get-arguments-lib v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Get arguments as a dictonary object

Instalation

npm

$ npm install get-arguments-lib --save

yarn

$ yarn add get-arguments-lib -S

Usage

$ node <your js  file> --port 3004 --host myHost
const processArguments = getArguments(process.argv);
const port = processArguments.port ? +processArguments.port : 3000;
const host = processArguments.host;

// port value is 3004
// host value is 'myHost'
1.0.2

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.1

7 years ago

1.0.0

7 years ago