77

GitHub - xxhomey19/github-uploader: ? ? Upload attachments to GitHub in CLI. The...

 6 years ago
source link: https://github.com/xxhomey19/github-uploader
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

GitHub Uploader

33471643-4f08d85c-d6a9-11e7-871d-ca6fc21bfdc9.gif

Get public and free URL to your files.
By github-uploader, you can let GitHub host your public files much more easier.

According to Official docs, GitHub supports these files now:

  • PNG (.png)
  • GIF (.gif)
  • JPEG (.jpg)
  • Log files (.log)
  • Microsoft Word (.docx), Powerpoint (.pptx), and Excel (.xlsx) documents
  • Text files (.txt)
  • PDFs (.pdf)
  • ZIP (.zip, .gz)

Notice that the maximum size for files is 25MB and the maximum size for images is 10MB.

Install hammer_and_wrench

Please make sure that your terminal has installed Node version 6.4.0 or higher.

$ npm install -g github-uploader

It will register github-uploader and gu in your terminal.

Usage desktop_computer

Upload files

Enter the path of files which you would like to upload to GitHub.

$ github-uploader [file path]

Note.
If you want to upload several files at the same time, separate each path with a space.
File path can be relative path or absolute path.

How it works question

I created a fake GitHub account named xxxhomey19.

Every time you upload files, github-uploader will log in to GitHub and pretend to open a new issue in this repo. On that page, it can upload your files.

Last of all, it parses all the content including file name and public URL and show it in your terminal.

That's it yum

License

MIT © xxhomey19


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK