@codinasion/language-data
v2.0.3
Published
Get data about programming languages
Downloads
9
Maintainers
Readme
@codinasion/language-data
Get data about programming languages.
Installation
# if you're using pnpm
pnpm add @codinasion/language-data
# or, if you're using npm
npm install @codinasion/language-data
# or, if you're using yarn
yarn add @codinasion/language-data
Usage
import { GetLanguageData } from "@codinasion/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/codinasion/codinasion/master/assets/language/c-plus-plus.png'
// }