1.2.0 • Published 1 year ago

content-type-to-language-name v1.2.0

Weekly downloads
63
License
ISC
Repository
-
Last release
1 year ago

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

1.2.0

1 year ago

1.0.1

3 years ago

1.0.0

5 years ago