1.2.0 • Published 5 years ago

github-spray v1.2.0

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

GitHub Spray

npm license

A CLI to generate sprays for your GitHub contribution history graph

npm.io

Installation

npm i -g github-spray

Requirements

  • Git
  • Recent NodeJS

Usage

  1. Create a new GitHub repository and copy its url
github-spray -t <text> --multiplier <factor> --push --origin <github_repository_url>

(example)

github-spray -t hello --multiplier 10 --push --origin https://github.com/John/hello.git

Depending on your number of contributions on the given period that you want to spray, you will need to multiply the number of commit per day by a specific factor (--multiplier) so that the spray become more relevant on your calendar heatmap.

github-spray --help

Fonts

github-spray -t <text> --font <font_name>

(example)

github-spray -t Wald0 --font portable_vengeance

npm.io

github-spray -t Mario? --font mario

npm.io

led7

npm.io
npm.io
npm.io
npm.io
Fonts available are in the fonts folder

Invert colors

npm.io

github-spray -t hello -i

Flip vertical

npm.io

github-spray -t hello --flipvertical

Flip horizontal

npm.io

github-spray -t hello --fliphorizontal

Custom pattern

To use a custom pattern, create a JSON file like follow.
The numbers (1 to 4) will determine the number of commit per day, and thus the green's darkness.

[
    "  333  ",
    " 3   3 ",
    "3 2 2 3",
    "3     3",
    "3 222 3",
    " 3   3 ",
    "  333  "
]

npm.io

github-spray -f <path/to/pattern.json> ...

npm.io

github-spray -f patterns/space-invaders.json ...

You can use GitHub Spray Generator to graphically draw patterns

Custom start date

github-spray --startdate YYYY-MM-DD ...

The date will be rounded to the nearest sunday.
By default the start date is the nearest sunday of the current date - 53 weeks.

Multiplier: scale colors

github-spray -m <factor> ...

Multiply the number of commit per day by the given factor to make the spray darker or brighter on your calendar heatmap.

Known issues

1.2.0

5 years ago

1.1.0

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago