lang-map ![NPM version](https://badge.fury.io/js/lang-map.svg)
Get the language associated with a file extension or the extensions associated with a language using the data from GitHub's Linguist YAML file
Install with npm
npm i lang-map --save
Usage
var language = require('lang-map');
Get language by extension
Returns the language that is associated with the given file extension (with or without .
):
language.lang('js');
language.lang('.md');
Get extensions by language
Returns the list of file extensions associated with the given language:
language.ext('python');
language.ext('markdown');
Author
Jon Schlinkert
License
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb on January 20, 2015.