@ilihub/language-data
v1.0.0
Published
Get programming language data
Downloads
16
Maintainers
Readme
@ilihub/language-data
Get programming language data.
Installation
# 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
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
| Language | File Extension | Naming Convention | Tag | Logo |
| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ------------ | --------------- |
| C | c
cats
h
idc
w
| PascalCase | c
| |
| C# |
cs
cake
cshtml
csx
| PascalCase | csharp
| |
| C++ |
cpp
c++
cc
cp
cxx
h
h++
hh
hpp
hxx
inc
inl
ipp
tcc
tpp
| PascalCase | cpp
| |
| Dart |
dart
| PascalCase | dart
| |
| F# |
fs
fsi
fsx
| PascalCase | fsharp
| |
| GO |
go
| snake_case | go
| |
| Haskell |
hs
hsc
| snake_case | haskell
| |
| Java |
java
| PascalCase | 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
| |
| Julia |
jl
| snake_case | julia
| |
| Kotlin |
kt
ktm
kts
| PascalCase | kotlin
| |
| Perl |
pl
al
cgi
fcgi
perl
ph
plx
pm
pod
psgi
t
| snake_case | perl
| |
| PHP |
php
aw
ctp
fcgi
inc
php3
php4
php5
phps
phpt
| snake_case | php
| |
| Python |
py
bzl
cgi
fcgi
gyp
lmi
pyde
pyp
pyt
pyw
rpy
tac
wsgi
xpy
| snake_case | python
| |
| R |
r
rd
rsx
| snake_case | r
| |
| Ruby |
rb
builder
fcgi
gemspec
god
irbrc
jbuilder
mspec
pluginspec
podspec
rabl
rake
rbuild
rbw
rbx
ru
ruby
thor
watchr
| PascalCase | ruby
| |
| Rust |
rs
rs.in
| snake_case | rust
| |
| Scala |
scala
sbt
sc
| camelCase | scala
| |
| Swift |
swift
| PascalCase | swift
| |
| TypeScript |
ts
tsx
| PascalCase | typescript
| |
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.