0.3.2 • Published 2 years ago

upload-my-image v0.3.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

upload-my-image

npm.io npm.io

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"));
})();

Other

costomize

0.3.2

2 years ago

0.3.0

2 years ago

0.3.1

2 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago