UNPKG
read-and-excute
Version:
latest (1.0.3)
1.0.3
1.0.2
1.0.1
1.0.0
a tool can read command line args and excute
github.com/Tzxhy/read-and-excute
Tzxhy/read-and-excute
read-and-excute
/
test
/
addCommands.test.js
8 lines
(5 loc)
•
244 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
var
Args
=
require
(
'../src/index.js'
);
var
argsTest =
new
Args
(); argsTest.
addCommand
(
'add1'
,
'madksjfefs'
,
function
(
){
console
.
log
(
'test'
)}) argsTest.
addCommand
(
'add2'
,
'222222'
,
function
(
){
console
.
log
(
'test'
)})
console
.
log
(argsTest);