Skip to content

Gyumeijie/put

Repository files navigation

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

$ npm install @gyumeijie/put

Usage

$ put ./YuMeiJie.jpeg

Config

Put the following content to the ~/.putrc file

{
  "github": {
    "branch": "branch_name",
    "owner": "user_name",
    "path": "path",
    "repo": "repo",
    "token": "personal_access_token"
  }
}

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

{
  "github": {
    "branch": "master",
    "owner": "Gyumeijie",
    "path": "assets",
    "repo": "put",
    "token": "06aed0df73r8ed1t2914d08da776148d2f350059"
  }
}

With all things ready, running the following command:

$ put ./YuMeiJie.jpeg

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

Related works