@gyumeijie/put

1.0.1 • Public • Published

put

pictures uploading tool

put allows you uploading pictures assets without downloading the whole repository, especially when the repository 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

Package Sidebar

Install

npm i @gyumeijie/put

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

827 kB

Total Files

3

Last publish

Collaborators

  • gyumeijie