upload-my-image

0.3.2 • Public • Published

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

Other

costomize

Readme

Keywords

Package Sidebar

Install

npm i upload-my-image

Weekly Downloads

1

Version

0.3.2

License

ISC

Unpacked Size

11.4 kB

Total Files

13

Last publish

Collaborators

  • hearuphill