imgbi-client
Simple command-line client and Node.js library for use img.bi.
Install
npm install imgbi -g
Usage
$ imgbi-client -i image.pnghttps://img.bi/#!XqL4IVp!jxJccrgkodebbxlaplteabgtbkllab5tberiWkamhttps://img.bi/rm/#!XqL4IVp!jxJccrgkodebbxlaplteabgtbkllab5tberiWkam!Rl80pmqeXIgRhZz9TQvCrYLAIAi$ imgbi-client -d 'https://img.bi/#!XqL4IVp!jxJccrgkodebbxlaplteabgtbkllab5tberiWkam' -o imagesOK: Saved to XqL4IVp.png$ imgbi-client -r 'https://img.bi/rm/#!XqL4IVp!jxJccrgkodebbxlaplteabgtbkllab5tberiWkam!Rl80pmqeXIgRhZz9TQvCrYLAIAi'OK: Removed
--help
Usage:
imgbi-client [OPTIONS] [ARGS]
Options:
-i, --image FILE Image location
-r, --remove URL URL of file to be removed
-d, --download URL URL of file to be downloaded and decrypted
-e, --expire [NUMBER] Set expire time in days for image, 0 for store forever (Default is 180)
-o, --output [PATH] Location to save file (Default is .)
-u, --url [URL] URL of img.bi instance (Default is https://img.bi)
-n, --norm Don't print removal link
-l, --nolink Don't print link to show image
-a, --autorm Print autoremove link
-em, --embed Print embed code
-k, --no-color Omit color from output
--debug Show debug information
-h, --help Display help and usage details
Programmatic usage
Uploading
var imgbi = ;var options = {};optionsimage = 'image.jpg'; // image locationoptionsexpire = '180'; // time to expire in days, default 180optionsurl = 'https://img.bi'; // url of img.bi server, https://img.bi by defaultimgbi;
Removing
imgbi = ;var url = 'https://img.bi/rm/#!XqL4IVp!jxJccrgkodebbxlaplteabgtbkllab5tberiWkam!Rl80pmqeXIgRhZz9TQvCrYLAIAi'; // link to remove imageimgbi;
Downloading
imgbi = ;var url = 'https://img.bi/#!XqL4IVp!jxJccrgkodebbxlaplteabgtbkllab5tberiWkam'; // link to view imagevar path = '~/images'; // path to save imageimgbi;