1.1.0 • Published 4 years ago

get-arguments-lib v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 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

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.1

6 years ago

1.0.0

6 years ago