UNPKG
npm-hello-world-taozhi
Version:
latest (1.0.0)
1.0.0
你好 世界!
github.com/taozhi1010/npm-helloWorld
taozhi1010/npm-helloWorld
npm-hello-world-taozhi
/
index.js
7 lines
(6 loc)
•
241 B
JavaScript
View Raw
1
2
3
4
5
6
7
const
minimist =
require
(
'minimist'
)
module
.
exports
=
() =>
{
// slice(2) 删除前两个参数,因为第一个参数是解释器,第二个参数是文件名
const
args =
minimist
(process.
argv
.
slice
(
2
));
console
.
log
(args); }