我用 nodejs 编写了一个小型命令行程序,我希望能够npm run test
使用以下参数键入和运行该程序。
直接输入以下命令即可,
node.exe scrappee.js -u 'https://github.com/matutter/{}' -us 'cloggie, AirRocks-Flightcontroller' -s '$commit=li.commits > a > span, $sha=.right .commit-tease-sha' -pm .\test\example_parse_module.js
但是我的 package.json 的内容如下所示,没有任何输出。
"scripts": {
"test" : "node.exe scrappee.js -u 'https://github.com/matutter/{}' -us 'cloggie, AirRocks-Flightcontroller' -s '$commit=li.commits > a > span, $sha=.right .commit-tease-sha' -pm .\\test\\example_parse_module.js"
}
如何获得npm run test
使用这些参数运行 scrappee.js 脚本的命令?