content-type-to-language-name

1.2.0 • Public • Published

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

Package Sidebar

Install

npm i content-type-to-language-name

Weekly Downloads

25

Version

1.2.0

License

ISC

Unpacked Size

3.34 kB

Total Files

4

Last publish

Collaborators

  • npm
  • npmci
  • saquibkhan
  • gar
  • tayvongh
  • karenjli
  • jumoel
  • nishantms
  • kartykp
  • shmam
  • reggi
  • jithinpg
  • dhei
  • maitxn
  • hashtagchris
  • owlstronaut