Display your codewars stats at your github readme profile!
Just replace USERNAME in the string below by your codewars username and copy-paste it to your github profile readme
You can add the following query params to the base url: https://github.r2v.ch/codewars
| parameter | requierd | describtion | example |
|---|---|---|---|
username | yes | used to get the user info from codewars | username=foo |
| name | no | if set to true the codewars name (nickname) is used on the card instead of the username | name=true |
| top_languages | no | extens the crad with 3 icons of the top trained languages | top_languages=true |
| stroke | no | sets a border with the passed in color around the card | stroke=blackstroke=rgb(0,0,0)stroke=%23000000 |
| theme | no | new feature! sets a theme for the card | theme=lighttheme=dark |

โ ๏ธ Important: You can pass in the usual css color types just make sure to use%23instead of#while using hex code because of the url encoding
I am currently implementing a theme feature. This allows you to change de default codewars like theme. You can find a example of all themes here.
If you wish for other themes I am happy to take a pull request, just place your desired color set in the themes.js file. Please also add it in the example file.
The pattern for linking svg content  can be wrapped in []() markdown option to link somewhere when clicked.
[(LINK)]Optional to the svg ref markdown style it is possible to load the card as image. This gives you the possibility to center it as example.
<p align="center" > <a href="LINK TO: WHEN CLICKED"> <img src="https://github.r2v.ch/codewars?user=USERNAME" /> </a> </p> The project is currently hosted on heroku and free to use for everyone :)
-
Many Thanks to the guys of https://github.com/anuraghazra/github-readme-stats where I got the idea to do the same for codewars :)
-
If you have any questions don't hesitate to ask or open a issue!