UNPKG
uascript
Version:
latest (1.4.0)
1.4.0
1.3.0
1.2.1
1.1.1
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0
Javascript in Ukrainian
github.com/DevoRia/UaScript
DevoRia/UaScript
uascript
/
.bin
/
conf.js
17 lines
(10 loc)
•
223 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env node const
arg
= process.argv[
2
]
if
(!
arg
) { process.
exit
(
0
) } const
config
= JSON.parse(
arg
);
if
(!
config
|| !
config
.from || !
config
.to) { process.
exit
(
0
) } console.
log
(
config
.from,
config
.to)