UNPKG

488 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const lodash_1 = require("lodash");
4var License;
5(function (License) {
6 License["MIT"] = "MIT";
7 License["APACHE2"] = "Apache-2.0";
8 License["GPL3"] = "GPL-3.0";
9})(License = exports.License || (exports.License = {}));
10exports.LICENSE_VALUES = Object.freeze(lodash_1.values(License));
11function isLicense(v) {
12 return !!v && exports.LICENSE_VALUES.indexOf(v) !== -1;
13}
14exports.isLicense = isLicense;