You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

content-type-to-language-name

Package Overview
Dependencies
Maintainers
78
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

content-type-to-language-name

Maps a list of content types to a list of language names


Version published
Maintainers
78
Created

Readme

Source

content-type-to-language-name

NPM version Build Status

Manually curated map of valid mime content-types to a list of valid highlight.js language names.

Install

npm install content-type-to-language-name

Usage

You can retrieve the language name by using the default method:

const getLanguage = require('content-type-to-language-name')
getLanguage('application/javascript') // javascript

also the raw map is available:

const contentTypeToLanguageName = require('content-type-to-language-name').map

LICENSE

ISC

Keywords

FAQs

Package last updated on 17 Feb 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc