项目作者: Gyumeijie

项目描述 :
Pictures Uploading Tool, mainly for GitHub repository
高级语言: JavaScript
项目地址: git://github.com/Gyumeijie/put.git
创建时间: 2019-05-13T00:36:01Z
项目社区:https://github.com/Gyumeijie/put

开源协议:

下载


put

pictures uploading tool

put allows you uploading pictures assets without downloading the whole repository. This is useful especially the repository to which some assets are put has a big size.

Install

  1. $ npm install @gyumeijie/put

Usage

  1. $ put ./YuMeiJie.jpeg

Config

Put the following content to the ~/.putrc file

  1. {
  2. "github": {
  3. "branch": "branch_name",
  4. "owner": "user_name",
  5. "path": "path",
  6. "repo": "repo",
  7. "token": "personal_access_token"
  8. }
  9. }

And take https://github.com/Gyumeijie/put for examples:

  1. {
  2. "github": {
  3. "branch": "master",
  4. "owner": "Gyumeijie",
  5. "path": "assets",
  6. "repo": "put",
  7. "token": "06aed0df73r8ed1t2914d08da776148d2f350059"
  8. }
  9. }

With all things ready, running the following command:

  1. $ put ./YuMeiJie.jpeg
  2. https://raw.githubusercontent.com/Gyumeijie/put/master/assets/YuMeiJie.jpeg

For how to create a personal access token to access the GitHub API, please visit here.

License

MIT © Gyumeijie