
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@ilihub/language-data
Advanced tools
Get programming language data.
# 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
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'
// }
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 | ![]() |
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.
FAQs
Get programming language data
We found that @ilihub/language-data demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.