Package Exports
- gh-linguist
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gh-linguist) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gh-linguist 
GitHub's linguist data base exposed as a Node.js module
Install
npm i gh-linguist
Usage
import linguist from 'gh-linguist'
const languages = await linguist()
API
linguist()
Returns a Promise
that resolves with the contents of Linguist's YAML data base parsed as a plain JavaScript object.
Updates
To make this module up to date with Linguist I've setup a scheduler that runs once a day to check for updates.
License
- Language grammars borrowed from Linguist are covered by their repositories' respective licenses.
- Linguist itself and all the files in this repository are covered by the MIT license.