Package Exports
- github-spray
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (github-spray) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
GitHub Spray
A CLI to generate sprays for your GitHub commit graph history
Installation
npm i -g github-spray
Requirement
- Git
- Recent NodeJS
Usage
- Create a new GitHub repository and copy its url
github-spray -t <text> --push --origin <github_repository_url>
(example)
github-spray -t hello --push --origin https://github.com/John/hello.git
github-spray --help
Invert colors
github-spray -t hello -i
Custom pattern
To use a custom pattern, create a javascript file like follow.
The numbers (1 to z, base 36) will determine the green's darkness.
module.exports = [
' 999 ',
' 9 9 ',
'9 9 9 9',
'9 9',
'9 999 9',
' 9 9 ',
' 999 '
];
github-spray -f <absolute_path/to/pattern.js> ...
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.
Known issues
- Before Monday 10 March 2014 there could be a shift due to the timezone