You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

linguist-languages

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linguist-languages

Linguist languages data

8.0.0
latest
Source
npmnpm
Version published
Weekly downloads
124K
-25.28%
Maintainers
2
Weekly downloads
 
Created
Source

linguist-languages

npm build

Linguist languages.yaml data in JS format.

Install

npm install linguist-languages

Usage

Import specific language data

import { JavaScript as javascript, 'F*' as FStar } from 'linguist-languages'

Or

import javascript from 'linguist-languages/data/JavaScript'

[!IMPORTANT] Due to file system and runtime limitation, the file location is not always the same as language name. Eg: F* data is saved in data/F_2a_.mjs

import FStar from 'linguist-languages/data/F_2a_'

Import all languages data

import * as languages from 'linguist-languages'

const javascript = languages.JavaScript

Development

# lint
pnpm run lint

# build
pnpm run build

# test
pnpm run test

License

MIT © Ika

Keywords

data

FAQs

Package last updated on 05 Jun 2025

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