A command-line tool for uploading images.
npm install uper- Out of the box, uper can automatically upload local images to the cloud and add the URL to clipboard.
- Automatically parse Markdown file and replace local image reference to remote URL reference.
- More the images, you can upload your files to cdn server, now supports aliyun, qiniuyun.
The tool is based on Node.js, so your have to install it first.
``shinstall
npm install -g uper
Now you can use it!
Usage
Thanks to sm.ms, we can use it without and configuration. sm.ms as the default image stock, only support images, and upload same image twice will rise a error.
$3
`sh
uper
`It's queitly easy to use uper, just run command
uper , the file will be uploaded and return an URL witch will be add to clipboard automatically.$3
`sh
uper
`uper supports globing pattern so that you can upload multiple files a time。For example, run
uper test/* can upload all files in test directory:`sh
upload all files in test
uper test/*upload cat1.jpg、cat2.jpg、cat3.jpg...
uper test/cat?.jpgonly images
uper test/*.{jpg,png,gif}
`Check bash_globbing_tutorial for more about globing pattern。
You can alse use
uper test/* > output.txt to persist the results.$3
Uper is very useful when writing Markdown files. By replacing local image references to remote URLs automatically, you can share your Markdown anywhere.
`sh
parse Markdown
uper -m
`Changes after run
uper -m README-CN.md`: