content-type-to-language-name

1.0.1 • 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

/content-type-to-language-name/

    Package Sidebar

    Install

    npm i content-type-to-language-name

    Weekly Downloads

    202

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    3.36 kB

    Total Files

    4

    Last publish

    Collaborators

    • shmam
    • dipeshpatel01
    • kartykp
    • jithinpg
    • reggi
    • karenjli
    • tayvongh
    • navin22
    • lukekarrys-gh
    • dhei
    • tiagonbotelho
    • hashtagchris
    • nishantms
    • feelepxyz.github
    • monishcm
    • jumoel
    • trevrosen
    • fritzy
    • npm
    • npmci
    • saquibkhan
    • gar
    • mylesborins