Need private packages and team management tools?Check out npm Teams »

content-type-to-language-name

1.0.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

Install

npm i content-type-to-language-name

DownloadsWeekly Downloads

6

Version

1.0.0

License

ISC

Unpacked Size

3.37 kB

Total Files

4

Last publish

Collaborators

  • avatar
  • avatar
  • avatar