@altenull/github-lang-to-icon
v1.0.1
Published
React component that converts the GitHub language into an icon.
Downloads
57
Maintainers
Readme
github-lang-to-icon
⚙️ Installation
$ npm install --save @altenull/github-lang-to-icon
🚀 Quick Start
import { GithubLangToIcon } from '@altenull/github-lang-to-icon';
render() {
return (
<GithubLangToIcon
lang="TypeScript"
size={64}
/>
);
}
Props
| Prop | Type | Default | Description |
| :-----: | :--------------------------------: | :-----: | :-------------------------------------------------: |
| lang
| GithubLang | LowercasedGithubLang | | type LowercasedGithubLang = Lowercase<GithubLang> |
| size
| number | undefined | 40 | Icon's width & height |
| style
| React.CSSProperties | undefined | | |
Supported Languages
GithubLang(type)
is based on response of List repository languages (Github API).- The source of below icon images is devicon.
- About repository languages (Github API)
| GithubLang(type) | Icon(svg) | | :--------------: | :----------------------------------------------------------------------------------------------------------: | | 'C' | | | 'Clojure' | | | 'CoffeeScript' | | | 'C++' | | | 'C#' | | | 'CSS' | | | 'Dart' | | | 'Elixir' | | | 'Elm' | | | 'Erlang' | | | 'F#' | | | 'Go' | | | 'Groovy' | | | 'Haskell' | | | 'HTML' | | | 'Java' | | | 'JavaScript' | | | 'Julia' | | | 'Kotlin' | | | 'Lua' | | | 'Markdown' | | | 'MATLAB' | | | 'Nix' | | | 'Objective-C' | | | 'OCaml' | | | 'Perl' | | | 'PHP' | | | 'Python' | | | 'R' | | | 'Ruby' | | | 'Rust' | | | 'Scala' | | | 'SCSS' | | | 'Shell' | | | 'Stylus' | | | 'Swift' | | | 'TypeScript' | | | 'Vim Script' | |
📝 License
Licensed under the MIT.