New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ilihub/language-data

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ilihub/language-data

Get programming language data

1.0.0
latest
Source
npm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

@ilihub/language-data

Get programming language data.

NPM Version NPM CodeFactor Socket Badge

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

LanguageFile ExtensionNaming ConventionTagLogo
Cc cats h idc wPascalCasec
C#cs cake cshtml csxPascalCasecsharp
C++cpp c++ cc cp cxx h h++ hh hpp hxx inc inl ipp tcc tppPascalCasecpp
DartdartPascalCasedart
F#fs fsi fsxPascalCasefsharp
GOgosnake_casego
Haskellhs hscsnake_casehaskell
JavajavaPascalCasejava
JavaScriptjs _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 xsjslibPascalCasejavascript
Juliajlsnake_casejulia
Kotlinkt ktm ktsPascalCasekotlin
Perlpl al cgi fcgi perl ph plx pm pod psgi tsnake_caseperl
PHPphp aw ctp fcgi inc php3 php4 php5 phps phptsnake_casephp
Pythonpy bzl cgi fcgi gyp lmi pyde pyp pyt pyw rpy tac wsgi xpysnake_casepython
Rr rd rsxsnake_caser
Rubyrb builder fcgi gemspec god irbrc jbuilder mspec pluginspec podspec rabl rake rbuild rbw rbx ru ruby thor watchrPascalCaseruby
Rustrs rs.insnake_caserust
Scalascala sbt sccamelCasescala
SwiftswiftPascalCaseswift
TypeScriptts tsxPascalCasetypescript

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

Keywords

ilihub

FAQs

Package last updated on 15 Nov 2023

Did you know?

Socket

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.

Install

Related posts