1.0.1 • Published 2 years ago

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

Weekly downloads
63
License
ISC
Repository
-
Last release
2 years 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.0.1

2 years ago

1.0.0

4 years ago