Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

imgup

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imgup

Upload images to imgur anonymously via [imgur API](https://apidocs.imgur.com/). Useful when you're working with Markdown. The output result can be used directly in the Markdown.

  • 1.2.0
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

imgup

Upload images to imgur anonymously via imgur API. Useful when you're working with Markdown. The output result can be used directly in the Markdown.

Installation

npm install -g imgup

Usage

Usage: imgup [options]

Options:
  -f, --file <string>  specify an image file path to upload to imgur
  -v, --version        output the current version
  -h, --help           display help for command

To upload an image from our test data directory:

imgup --file ./testData/big-cat.png

# The following output will be shown in your CLI
✔ Success
Image URL: https://i.imgur.com/mWbxxoM.png
Markdown: ![Big-cat image](https://i.imgur.com/mWbxxoM.png)

Acknowledgement

Big thanks to Rob Potter for the test data image

TODOs

  • Add error handling logic
  • Should output markdown image url instead of whole JSON
  • Better error handling
  • Publish to npm registry
  • Add GitHub action
  • Linting

License

MIT

FAQs

Package last updated on 30 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc