0.1.0 • Published 2 years ago

nos-upload-cli v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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编辑器的自动上传图片功能所需输出格式,如有需要,可以增加CommandOption,自定义其他输出格式