npm package: @ilihub/language-data
Description: Get programming language data
Author: ilihub
Latest version: 1.0.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @ilihub/language-data

Get programming language data.

![NPM Version](https://img.shields.io/npm/v/%40ilihub%2Flanguage-data?color=33cd56&logo=npm)
![NPM](https://img.shields.io/npm/l/%40ilihub%2Flanguage-data)
[![CodeFactor](https://www.codefactor.io/repository/github/ilihub/npm/badge)](https://www.codefactor.io/repository/github/ilihub/npm)
[![Socket Badge](https://socket.dev/api/badge/npm/package/@ilihub/language-data)](https://socket.dev/npm/package/@ilihub/language-data)

## Installation

```bash
# if you're using pnpm
pnpm add @ilihub/language-data

# or, if you're using npm
npm install @ilihub/language-data

# or, if you're using yarn
yarn add @ilihub/language-data
```

## Usage

```javascript
import { GetLanguageData } from "@ilihub/language-data";

const cLanguageData = GetLanguageData({ name: "C++" })[0];
// or, const cLanguageData = GetLanguageData({ fileExtension: "cpp" })[0];
// or, const cLanguageData = GetLanguageData({ prismTag: "cpp" })[0];

console.log(cLanguageData);

// {
//     name: 'C++',
//     fileExtension: [
//         'cpp', 'c++', 'cc',
//         'cp',  'cxx', 'h',
//         'h++', 'hh',  'hpp',
//         'hxx', 'inc', 'inl',
//         'ipp', 'tcc', 'tpp'
//     ],
//     namingConvention: 'PascalCase',
//     prismTag: 'cpp',
//     logo: 'https://raw.githubusercontent.com/ilihub/npm/master/assets/language/c-plus-plus.png'
// }
```

## Available Languages Data

<!-- The following table is generated by the `src/UpdateReadme.ts` script. -->
<!-- Please do not edit it manually. -->
<!-- START: Available Languages -->

| Language   | File Extension                                                                                                                                                                                                                                                                                                                                                       | Naming Convention | Tag          | Logo            |
| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ------------ | --------------- |
| C          | `c` `cats` `h` `idc` `w`                                                                                                                                                                                                                                                                                                                                             | PascalCase        | `c`          | ![][c]          |
| C#         | `cs` `cake` `cshtml` `csx`                                                                                                                                                                                                                                                                                                                                           | PascalCase        | `csharp`     | ![][csharp]     |
| C++        | `cpp` `c++` `cc` `cp` `cxx` `h` `h++` `hh` `hpp` `hxx` `inc` `inl` `ipp` `tcc` `tpp`                                                                                                                                                                                                                                                                                 | PascalCase        | `cpp`        | ![][cpp]        |
| Dart       | `dart`                                                                                                                                                                                                                                                                                                                                                               | PascalCase        | `dart`       | ![][dart]       |
| F#         | `fs` `fsi` `fsx`                                                                                                                                                                                                                                                                                                                                                     | PascalCase        | `fsharp`     | ![][fsharp]     |
| GO         | `go`                                                                                                                                                                                                                                                                                                                                                                 | snake_case        | `go`         | ![][go]         |
| Haskell    | `hs` `hsc`                                                                                                                                                                                                                                                                                                                                                           | snake_case        | `haskell`    | ![][haskell]    |
| Java       | `java`                                                                                                                                                                                                                                                                                                                                                               | PascalCase        | `java`       | ![][java]       |
| JavaScript | `js` `_js` `bones` `es` `es6` `frag` `gs` `jake` `jsb` `jscad` `jsfl` `jsm` `jss` `njs` `pac` `sjs` `ssjs` `sublime-build` `sublime-commands` `sublime-completions` `sublime-keymap` `sublime-macro` `sublime-menu` `sublime-mousemap` `sublime-project` `sublime-settings` `sublime-theme` `sublime-workspace` `sublime_metrics` `sublime_session` `xsjs` `xsjslib` | PascalCase        | `javascript` | ![][javascript] |
| Julia      | `jl`                                                                                                                                                                                                                                                                                                                                                                 | snake_case        | `julia`      | ![][julia]      |
| Kotlin     | `kt` `ktm` `kts`                                                                                                                                                                                                                                                                                                                                                     | PascalCase        | `kotlin`     | ![][kotlin]     |
| Perl       | `pl` `al` `cgi` `fcgi` `perl` `ph` `plx` `pm` `pod` `psgi` `t`                                                                                                                                                                                                                                                                                                       | snake_case        | `perl`       | ![][perl]       |
| PHP        | `php` `aw` `ctp` `fcgi` `inc` `php3` `php4` `php5` `phps` `phpt`                                                                                                                                                                                                                                                                                                     | snake_case        | `php`        | ![][php]        |
| Python     | `py` `bzl` `cgi` `fcgi` `gyp` `lmi` `pyde` `pyp` `pyt` `pyw` `rpy` `tac` `wsgi` `xpy`                                                                                                                                                                                                                                                                                | snake_case        | `python`     | ![][python]     |
| R          | `r` `rd` `rsx`                                                                                                                                                                                                                                                                                                                                                       | snake_case        | `r`          | ![][r]          |
| Ruby       | `rb` `builder` `fcgi` `gemspec` `god` `irbrc` `jbuilder` `mspec` `pluginspec` `podspec` `rabl` `rake` `rbuild` `rbw` `rbx` `ru` `ruby` `thor` `watchr`                                                                                                                                                                                                               | PascalCase        | `ruby`       | ![][ruby]       |
| Rust       | `rs` `rs.in`                                                                                                                                                                                                                                                                                                                                                         | snake_case        | `rust`       | ![][rust]       |
| Scala      | `scala` `sbt` `sc`                                                                                                                                                                                                                                                                                                                                                   | camelCase         | `scala`      | ![][scala]      |
| Swift      | `swift`                                                                                                                                                                                                                                                                                                                                                              | PascalCase        | `swift`      | ![][swift]      |
| TypeScript | `ts` `tsx`                                                                                                                                                                                                                                                                                                                                                           | PascalCase        | `typescript` | ![][typescript] |

[c]: https://raw.githubusercontent.com/ilihub/npm/master/assets/language/c.png
[csharp]: https://raw.githubusercontent.com/ilihub/npm/master/assets/language/c-sharp.png
[cpp]: https://raw.githubusercontent.com/ilihub/npm/master/assets/language/c-plus-plus.png
[dart]: https://raw.githubusercontent.com/ilihub/npm/master/assets/language/dart.png
[fsharp]: https://raw.githubusercontent.com/ilihub/npm/master/assets/language/f-sharp.png
[go]: https://raw.githubusercontent.com/ilihub/npm/master/assets/language/go.png
[haskell]: https://raw.githubusercontent.com/ilihub/npm/master/assets/language/haskell.png
[java]: https://raw.githubusercontent.com/ilihub/npm/master/assets/language/java.png
[javascript]: https://raw.githubusercontent.com/ilihub/npm/master/assets/language/javascript.png
[julia]: https://raw.githubusercontent.com/ilihub/npm/master/assets/language/julia.png
[kotlin]: https://raw.githubusercontent.com/ilihub/npm/master/assets/language/kotlin.png
[perl]: https://raw.githubusercontent.com/ilihub/npm/master/assets/language/perl.png
[php]: https://raw.githubusercontent.com/ilihub/npm/master/assets/language/php.png
[python]: https://raw.githubusercontent.com/ilihub/npm/master/assets/language/python.png
[r]: https://raw.githubusercontent.com/ilihub/npm/master/assets/language/r.png
[ruby]: https://raw.githubusercontent.com/ilihub/npm/master/assets/language/ruby.png
[rust]: https://raw.githubusercontent.com/ilihub/npm/master/assets/language/rust.png
[scala]: https://raw.githubusercontent.com/ilihub/npm/master/assets/language/scala.png
[swift]: https://raw.githubusercontent.com/ilihub/npm/master/assets/language/swift.png
[typescript]: https://raw.githubusercontent.com/ilihub/npm/master/assets/language/typescript.png

<!-- END: Available Languages -->

---

<!-- sponsors_and_backers_section_start -->

<!-- Please do not edit/update this section manually, it is automatically generated by the `sponsors.yml` workflow -->

## Sponsors & Backers

Support the development of new open-source projects from ilihub through crowdfunding.

The core of ilihub is our crowd-funded open-source projects, licensed under the permissive MIT license. Sponsorship increases the rate of bug fixes, documentation improvements, and feature development.

![Sponsors](https://raw.githubusercontent.com/ilihub/sponsors/sponsors/sponsors.svg)

<!-- sponsors_and_backers_section_end -->

---