bx-uti1s
v1.0.0
Published
启动后读取指定文件并上传到 http://localhost:8080/xxxx
Readme
bx-utils
一个最小的 npm 项目:启动后读取指定文件并上传到 http://localhost:8080/xxxx。
运行
默认上传地址是 http://localhost:8080/xxxx,可通过 --url 或 BX_URL 覆盖。
npm start -- ./test.txt或
npm start -- --file ./test.txt --url http://localhost:8080/xxxx或使用环境变量:
BX_FILE=./test.txt BX_URL=http://localhost:8080/xxxx npm start作为命令行工具使用(发布到 npm 后)
直接用 npx(不安装到全局):
npx bx-utils ./test.txt全局安装后使用:
npm i -g bx-utils
bx-utils ./test.txt帮助
npm start -- --help