1.1.0 • Published 3 years ago

get-arguments-lib v1.1.0

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

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.1

5 years ago

1.0.0

5 years ago