upload-my-image
v0.3.2
Published
upload my local image(s) to the internet!
Downloads
6
Readme
upload-my-image
A cli tool which could run with Typora
Installation
$ npm install upload-my-image -g
Usage
uploadimg [options...] <path>
--list -L show all avaliable servers
--server=<server> -S select server
--sen=<true|false> whether enables a case-sensitive mode for matching files, default true
--help -H show help
examples
uploadimg ./wallpaper.png
uploadimg wallpaper.png --server=smms # use selected server
uploadimg a.png b.png c.png # upload multiple images
uploadimg ./*.jpg ./*.png # use system glob, windows cmd is not supported
uploadimg "./*.jpg" # use fast-glob, support all system
Use it with Typora
after installation, input uploadimg
or uploadimg --server=<serverName>
in Typora to use it
Use it with Node.js
$ npm install upload-my-image --save
glob is not supported here
import getRemoteURL from "upload-my-image/beds/smms.js";
(async () => {
console.log(await getRemoteURL("./wallpaper.jpg"));
})();