Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
#!/usr/bin/env node
const cson = require('cson');
const fs = require('fs');
const execSync = require('child_process').execSync;
const parameterize = require('parameterize');
const util = require('util');
const genex = require('genex');
const ret = require('ret');
// const repo = 'https://github.com:file-icons/atom';
const defs = cson.parseCSFile('./defs/config.cson');
const stylesIcons = fs.readFileSync('./defs/styles/icons.less').toString();
const darkFontColour = "#cccccc";
const lightFontColour = "#6c6c6c";
// HACK(#42)
defs.fileIcons["Pre-commit"].match = /^\.pre-commit-config\.(ya?ml)$/i;
var icons = {};
var result;
let regex = /\.(.*?)-icon:before\s+{\s+\.(\w+); content: "(.*?)"/g;
let fontMap = {
"fi": "file-icons",
"fa": "fontawesome",
"octicons": "octicons",
"mf": "mfixx",