nos-upload-cli
v0.1.0
Published
使用本地存储的nos config上传指定文件
Downloads
7
Keywords
Readme
nos-upload-cli
使用本地存储的nos config上传指定文件
代码结构借鉴了lofter-md
安装
npm i nos-upload-cli -g
使用方式
nos-upload <input-file-1> <input-file-2> <input-file-...>
- 与
lofter-md
共用Nos config的配置存储位置 - 首次使用会要求输入Nos config的配置
- 上传完成的文件地址将会输出在控制台
上传成功:
https://lofter.lf127.net/nos-upload-cli/1665459290761/xxx.js
https://lofter.lf127.net/nos-upload-cli/1665459290780/xxx.png
输出上述上传成功格式是为了适配Typora
编辑器的自动上传图片功能所需输出格式,如有需要,可以增加Command
的Option
,自定义其他输出格式