args_v2
v1.0.6
Published
An npm made to help manipulate arguments.
Downloads
2
Readme
Installation
npm i args_v2
Functions:
| Name | Params | Function |
| ---- | ------ | ------|
| argsv
| 2
| Returns the first value entered
|
| argsm
| 2
3
4
| Returns the First, Second and Third value
|
Examples:
Argsv
const { argv } = require('args_v2');
name = argsv(2); // Here you can set other values to get. (3), (4)
// node . Silva
console.log('Your name is ${name}'); // Output: Your name is Silva
Example 2
const { argv } = require('args_v2');
name = argsv(3); // Here you can set other values to get. (3), (4)
// node . Silva Daniel
console.log('Your name is ${name}'); // Output: Your name is Daniel
Argsm
const { argv, argsm } = require('args_v2');
name = argsm(2, 3, 4); // Here you can set other values to get. (3, 4), (3, 4, 5)
// node . Daniel Silva Silva
console.log('Your name is ${name}'); // Output: Your name is Daniel Silva Silva
Example 2
const { argv, argsm } = require('args_v2');
name = argsm(2, 3, 4); // Here you can set other values to get. (3, 4), (3, 4, 5)
age = argv(5); // Here you can set other values to get. (3), (4)
// node . Daniel Silva Silva 20
console.log('Your name is ${name} and your age is ${age}'); // Output: Your name is Daniel Silva Silva 20
License
Args V2 is released under the MIT License. Check LICENSE file for more information.