Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const path = require('path');
const prettyStringify = require('json-stringify-pretty-compact');
const shell = require('shelljs');
const YAML = require('js-yaml');
const fieldSchema = require('./data/presets/schema/field.json');
const presetSchema = require('./data/presets/schema/preset.json');
const nsi = require('name-suggestion-index');
const deprecated = require('./data/deprecated.json').dataDeprecated;
// fontawesome icons
const fontawesome = require('@fortawesome/fontawesome-svg-core');
const fas = require('@fortawesome/free-solid-svg-icons').fas;
const far = require('@fortawesome/free-regular-svg-icons').far;
const fab = require('@fortawesome/free-brands-svg-icons').fab;
fontawesome.library.add(fas, far, fab);
const request = require('request').defaults({ maxSockets: 1 });
let _currBuild = null;
function buildData() {
if (_currBuild) return _currBuild;
const START = '🏗 ' + colors.yellow('Building data...');
const END = '👍 ' + colors.green('data built');
console.log('');
console.log(START);
console.time(END);
import { library } from '@fortawesome/fontawesome-svg-core';
// Official documentation available at: https://github.com/FortAwesome/vue-fontawesome
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
// If not present, it won't be visible within the application. Considering that you
// don't want all the icons for no reason. This is a good way to avoid importing too many
// unnecessary things.
library.add(
require('@fortawesome/free-solid-svg-icons').faGraduationCap,
require('@fortawesome/free-solid-svg-icons').faList,
require('@fortawesome/free-solid-svg-icons').faSpinner,
require('@fortawesome/free-solid-svg-icons').faHome,
// Brands
require('@fortawesome/free-brands-svg-icons').faMicrosoft,
require('@fortawesome/free-brands-svg-icons').faVuejs,
require('@fortawesome/free-brands-svg-icons').faFontAwesome
);
export {
FontAwesomeIcon
}
import { library } from '@fortawesome/fontawesome-svg-core';
// Official documentation available at: https://github.com/FortAwesome/vue-fontawesome
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
// If not present, it won't be visible within the application. Considering that you
// don't want all the icons for no reason. This is a good way to avoid importing too many
// unnecessary things.
library.add(
require('@fortawesome/free-solid-svg-icons').faGraduationCap,
require('@fortawesome/free-solid-svg-icons').faList,
require('@fortawesome/free-solid-svg-icons').faSpinner,
require('@fortawesome/free-solid-svg-icons').faHome,
// Brands
require('@fortawesome/free-brands-svg-icons').faMicrosoft,
require('@fortawesome/free-brands-svg-icons').faVuejs,
require('@fortawesome/free-brands-svg-icons').faFontAwesome
);
export {
FontAwesomeIcon
}
import { library } from '@fortawesome/fontawesome-svg-core';
// Official documentation available at: https://github.com/FortAwesome/vue-fontawesome
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
// If not present, it won't be visible within the application. Considering that you
// don't want all the icons for no reason. This is a good way to avoid importing too many
// unnecessary things.
library.add(
require('@fortawesome/free-solid-svg-icons').faGraduationCap,
require('@fortawesome/free-solid-svg-icons').faList,
require('@fortawesome/free-solid-svg-icons').faSpinner,
require('@fortawesome/free-solid-svg-icons').faHome,
// Brands
require('@fortawesome/free-brands-svg-icons').faMicrosoft,
require('@fortawesome/free-brands-svg-icons').faVuejs,
require('@fortawesome/free-brands-svg-icons').faFontAwesome
);
export {
FontAwesomeIcon
}
/* eslint-disable no-console */
const colors = require('colors/safe');
const fs = require('fs');
const fontawesome = require('@fortawesome/fontawesome-svg-core');
const faAt = require('@fortawesome/free-solid-svg-icons/faAt').faAt;
const faComments = require('@fortawesome/free-solid-svg-icons/faComments').faComments;
const faDiscord = require('@fortawesome/free-brands-svg-icons/faDiscord').faDiscord;
const faDiscourse = require('@fortawesome/free-brands-svg-icons/faDiscourse').faDiscourse;
const faFacebook = require('@fortawesome/free-brands-svg-icons/faFacebook').faFacebook;
const faKeyboard = require('@fortawesome/free-solid-svg-icons/faKeyboard').faKeyboard;
const faMeetup = require('@fortawesome/free-brands-svg-icons/faMeetup').faMeetup;
const faReddit = require('@fortawesome/free-brands-svg-icons/faReddit').faReddit;
const faSlack = require('@fortawesome/free-brands-svg-icons/faSlack').faSlack;
const faTelegram = require('@fortawesome/free-brands-svg-icons/faTelegram').faTelegram;
const faTwitter = require('@fortawesome/free-brands-svg-icons/faTwitter').faTwitter;
const faUsers = require('@fortawesome/free-solid-svg-icons/faUsers').faUsers;
buildAll();
function buildAll() {
var iconMap = {
discord: faDiscord,
discourse: faDiscourse,
/* eslint-disable no-console */
const colors = require('colors/safe');
const fs = require('fs');
const fontawesome = require('@fortawesome/fontawesome-svg-core');
const faAt = require('@fortawesome/free-solid-svg-icons/faAt').faAt;
const faComments = require('@fortawesome/free-solid-svg-icons/faComments').faComments;
const faDiscord = require('@fortawesome/free-brands-svg-icons/faDiscord').faDiscord;
const faDiscourse = require('@fortawesome/free-brands-svg-icons/faDiscourse').faDiscourse;
const faFacebook = require('@fortawesome/free-brands-svg-icons/faFacebook').faFacebook;
const faKeyboard = require('@fortawesome/free-solid-svg-icons/faKeyboard').faKeyboard;
const faMeetup = require('@fortawesome/free-brands-svg-icons/faMeetup').faMeetup;
const faReddit = require('@fortawesome/free-brands-svg-icons/faReddit').faReddit;
const faSlack = require('@fortawesome/free-brands-svg-icons/faSlack').faSlack;
const faTelegram = require('@fortawesome/free-brands-svg-icons/faTelegram').faTelegram;
const faTwitter = require('@fortawesome/free-brands-svg-icons/faTwitter').faTwitter;
const faUsers = require('@fortawesome/free-solid-svg-icons/faUsers').faUsers;
buildAll();
function buildAll() {
var iconMap = {
discord: faDiscord,
discourse: faDiscourse,
facebook: faFacebook,
/* eslint-disable no-console */
const colors = require('colors/safe');
const fs = require('fs');
const fontawesome = require('@fortawesome/fontawesome-svg-core');
const faAt = require('@fortawesome/free-solid-svg-icons/faAt').faAt;
const faComments = require('@fortawesome/free-solid-svg-icons/faComments').faComments;
const faDiscord = require('@fortawesome/free-brands-svg-icons/faDiscord').faDiscord;
const faDiscourse = require('@fortawesome/free-brands-svg-icons/faDiscourse').faDiscourse;
const faFacebook = require('@fortawesome/free-brands-svg-icons/faFacebook').faFacebook;
const faKeyboard = require('@fortawesome/free-solid-svg-icons/faKeyboard').faKeyboard;
const faMeetup = require('@fortawesome/free-brands-svg-icons/faMeetup').faMeetup;
const faReddit = require('@fortawesome/free-brands-svg-icons/faReddit').faReddit;
const faSlack = require('@fortawesome/free-brands-svg-icons/faSlack').faSlack;
const faTelegram = require('@fortawesome/free-brands-svg-icons/faTelegram').faTelegram;
const faTwitter = require('@fortawesome/free-brands-svg-icons/faTwitter').faTwitter;
const faUsers = require('@fortawesome/free-solid-svg-icons/faUsers').faUsers;
buildAll();
function buildAll() {
var iconMap = {
discord: faDiscord,
discourse: faDiscourse,
facebook: faFacebook,
forum: faComments,
/* eslint-disable no-console */
const colors = require('colors/safe');
const fs = require('fs');
const fontawesome = require('@fortawesome/fontawesome-svg-core');
const faAt = require('@fortawesome/free-solid-svg-icons/faAt').faAt;
const faComments = require('@fortawesome/free-solid-svg-icons/faComments').faComments;
const faDiscord = require('@fortawesome/free-brands-svg-icons/faDiscord').faDiscord;
const faDiscourse = require('@fortawesome/free-brands-svg-icons/faDiscourse').faDiscourse;
const faFacebook = require('@fortawesome/free-brands-svg-icons/faFacebook').faFacebook;
const faKeyboard = require('@fortawesome/free-solid-svg-icons/faKeyboard').faKeyboard;
const faMeetup = require('@fortawesome/free-brands-svg-icons/faMeetup').faMeetup;
const faReddit = require('@fortawesome/free-brands-svg-icons/faReddit').faReddit;
const faSlack = require('@fortawesome/free-brands-svg-icons/faSlack').faSlack;
const faTelegram = require('@fortawesome/free-brands-svg-icons/faTelegram').faTelegram;
const faTwitter = require('@fortawesome/free-brands-svg-icons/faTwitter').faTwitter;
const faUsers = require('@fortawesome/free-solid-svg-icons/faUsers').faUsers;
buildAll();
function buildAll() {
var iconMap = {
discord: faDiscord,
discourse: faDiscourse,
facebook: faFacebook,
forum: faComments,
group: faUsers,
irc: faKeyboard,
/* eslint-disable no-console */
const colors = require('colors/safe');
const fs = require('fs');
const fontawesome = require('@fortawesome/fontawesome-svg-core');
const faAt = require('@fortawesome/free-solid-svg-icons/faAt').faAt;
const faComments = require('@fortawesome/free-solid-svg-icons/faComments').faComments;
const faDiscord = require('@fortawesome/free-brands-svg-icons/faDiscord').faDiscord;
const faDiscourse = require('@fortawesome/free-brands-svg-icons/faDiscourse').faDiscourse;
const faFacebook = require('@fortawesome/free-brands-svg-icons/faFacebook').faFacebook;
const faKeyboard = require('@fortawesome/free-solid-svg-icons/faKeyboard').faKeyboard;
const faMeetup = require('@fortawesome/free-brands-svg-icons/faMeetup').faMeetup;
const faReddit = require('@fortawesome/free-brands-svg-icons/faReddit').faReddit;
const faSlack = require('@fortawesome/free-brands-svg-icons/faSlack').faSlack;
const faTelegram = require('@fortawesome/free-brands-svg-icons/faTelegram').faTelegram;
const faTwitter = require('@fortawesome/free-brands-svg-icons/faTwitter').faTwitter;
const faUsers = require('@fortawesome/free-solid-svg-icons/faUsers').faUsers;
buildAll();
function buildAll() {
var iconMap = {
discord: faDiscord,
discourse: faDiscourse,
facebook: faFacebook,
forum: faComments,
group: faUsers,
irc: faKeyboard,
mailinglist: faAt,
/* eslint-disable no-console */
const colors = require('colors/safe');
const fs = require('fs');
const fontawesome = require('@fortawesome/fontawesome-svg-core');
const faAt = require('@fortawesome/free-solid-svg-icons/faAt').faAt;
const faComments = require('@fortawesome/free-solid-svg-icons/faComments').faComments;
const faDiscord = require('@fortawesome/free-brands-svg-icons/faDiscord').faDiscord;
const faDiscourse = require('@fortawesome/free-brands-svg-icons/faDiscourse').faDiscourse;
const faFacebook = require('@fortawesome/free-brands-svg-icons/faFacebook').faFacebook;
const faKeyboard = require('@fortawesome/free-solid-svg-icons/faKeyboard').faKeyboard;
const faMeetup = require('@fortawesome/free-brands-svg-icons/faMeetup').faMeetup;
const faReddit = require('@fortawesome/free-brands-svg-icons/faReddit').faReddit;
const faSlack = require('@fortawesome/free-brands-svg-icons/faSlack').faSlack;
const faTelegram = require('@fortawesome/free-brands-svg-icons/faTelegram').faTelegram;
const faTwitter = require('@fortawesome/free-brands-svg-icons/faTwitter').faTwitter;
const faUsers = require('@fortawesome/free-solid-svg-icons/faUsers').faUsers;
buildAll();
function buildAll() {
var iconMap = {
discord: faDiscord,
discourse: faDiscourse,
facebook: faFacebook,
forum: faComments,
group: faUsers,
irc: faKeyboard,
mailinglist: faAt,
matrix: faComments,