@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
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.