GitHub's linguist data base exposed as a Node.js module
npm i gh-linguist
import linguist from 'gh-linguist'
const languages = await linguist()
Returns a Promise
that resolves with the contents of Linguist's YAML data base parsed as a plain JavaScript object.
To make this module up to date with Linguist I've setup a scheduler that runs once a day to check for updates.
- 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.