/*!
 * @githubjs/github-languages v1.1.5
 * (c) 2014-2020 Ying Wang <upcwangying@gmail.com> (https://github.com/upcwangying)
 * Released under the MIT License.
 */
var e=require("request-promise"),n=require("js-yaml"),r=require("./model/index.js"),i={uri:"https://raw.githubusercontent.com/github/linguist/master/lib/linguist/languages.yml"};module.exports={Language:r,getLanguages:function(){return new Promise((function(u,s){e(i).then((function(e){if(e){var i=[],t=n.safeLoad(e);for(var a in t){var o=t[a];i.push(new r(a,o.color||"#cccccc"))}u(i)}else s("response is null!")})).catch((function(e){s(e)}))}))}};
