/github-lang-to-icon

React component that converts the GitHub language into an icon.

Primary LanguageTypeScriptMIT LicenseMIT

github-lang-to-icon

@altenull/github-lang-to-icon package version npm weekly downloads github-lang-to-icon is released under the MIT license React Typescript

React component that converts the GitHub language into an 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) 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.