1.0.1 • Published 5 years ago

@gyumeijie/put v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

put npm.io

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